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/mod.ts>TextVectorizer

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

Constructors

new
TextVectorizer(config: VectorizerModeConfig)

Properties

optional
transformer: TfIdfTransformer
readonly
vocabulary: string[]

Methods

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