Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 891 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 891 Bytes

@nlptools/segmentation

npm version npm downloads npm license Contributor Covenant

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",
});

License