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

x/vectorizer/src/text/preprocess/mod.ts>TextCleaner

Machine Learning utilities for TypeScript
Latest
class TextCleaner
implements StandardizeConfig
import { TextCleaner } from "https://deno.land/x/vectorizer@v0.7.5/src/text/preprocess/mod.ts";

Simple text cleaner

Constructors

new
TextCleaner(unnamed 0?: StandardizeConfig)

Properties

lowercase: boolean
normalizeWhiteSpaces: boolean
stripHtml: boolean
stripNewlines: boolean

Methods

clean(text: string): string
clean(text: string[]): string[]