Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netsaur/packages/utilities/src/mod.ts>TextCleaner

Powerful Powerful Machine Learning library with GPU, CPU and WASM backends
Latest
class TextCleaner
implements StandardizeConfig
import { TextCleaner } from "https://deno.land/x/netsaur@0.4.2/packages/utilities/src/mod.ts";

Simple text cleaner

Constructors

new
TextCleaner(unnamed 0?: StandardizeConfig)

Properties

keepOnlyAlphaNumeric: boolean
lowercase: boolean
normalizeWhiteSpaces: boolean
removeMentions: boolean
removeStopWords: false | "english" | string[]
stripHtml: boolean
stripNewlines: boolean

Methods

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