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

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

Powerful machine learning, accelerated by WebGPU
Go to Latest
class TextCleaner
implements StandardizeConfig
import { TextCleaner } from "https://deno.land/x/netsaur@0.4.0-patch/packages/utilities/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[]