Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/vectorizer/src/feature/conversion/text/sparse/count_vectorizer.ts>CountVectorizer

Feature Extraction and Feature Selection in TypeScript
Go to Latest
class CountVectorizer
import { CountVectorizer } from "https://deno.land/x/vectorizer@v0.3.7/src/feature/conversion/text/sparse/count_vectorizer.ts";

Convert text into vectors (bag of words)

Constructors

new
CountVectorizer(options?: Partial<BaseVectorizerOptions>)

Methods

transform<T extends DataType>(text: string | string[], dType: T): Matrix<T>

Convert a document (string | array of strings) into vectors.