Reference Entry
bigramVector
API Reference · foundation · order 147
Creates a fixed-size bigram-count vector from analyzed text or tokens.
Relevant APIs
bigramVector
Creates a fixed-size bigram-count vector from analyzed text or tokens.
Declaration
function bigramVector(tokens: string[]): Vector
function bigramVector(text: string, analyzer?: Analyzer): Vector