Querylight TS Demo

bigramVector

Creates a fixed-size bigram-count vector from analyzed text or tokens.

Back to docs search

Reference Entry

bigramVector

API Reference · foundation · order 147

Creates a fixed-size bigram-count vector from analyzed text or tokens.

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

Signatures

```ts function bigramVector(tokens: string[]): Vector ``` Creates a fixed-size bigram-count vector from analyzed text or tokens.

Parameters

- `tokens: string[]` ```ts function bigramVector(text: string, analyzer?: Analyzer): Vector ``` Creates a fixed-size bigram-count vector from analyzed text or tokens.

Parameters

- `text: string` - `analyzer?: Analyzer`