Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/vectorizer/src/text/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/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[]