@nlptools/segmentation
v0.0.1
Published
Programmatically create text segmentations, powered by Demo Macro.
Downloads
20
Readme
@nlptools/segmentation
Programmatically create text segmentations, powered by Demo Macro.
Getting started
# npm
$ npm install @nlptools/segmentation
# yarn
$ yarn add @nlptools/segmentation
# pnpm
$ pnpm add @nlptools/segmentation
Usage
import { createSegmentation } from "@nlptools/segmentation";
const segmentation = createSegmentation("Hello, world!", {
// options
lang: "en",
segmentation: "words",
});