4.26.1 • Published 1 year ago

@nlpjs/builtin-compromise v4.26.1

Weekly downloads
8
License
MIT
Repository
github
Last release
1 year ago

builtin-compromise

A golden entity extractor that runs in the browser.

Based on https://github.com/spencermountain/compromise

The Microsoft based builtins extractor only works for nodejs so this package is intended to provide golden entity extraction where nlp.js is being used in a browser.

  • Supports hashtags, person, place, organization ,email, phonenumber, date, url, number
  • Supports multiple entities per utterance that are annotated as email_0, email_1

See compromise documentation for details.

Usage

const { BuiltinCompromise } = require('@nlpjs/builtin-compromise');
const container = await containerBootstrap();
const builtin = new BuiltinCompromise({})
// Set enable to restrict list of entity extractors
const builtin = new BuiltinCompromise({
  enable: [
    'hashtags', 'person', 'place', 'organization',
    'email', 'phonenumber', 'date', 'url', 'number', 'dimension'
  ]
 });
container.register('extract-builtin-??', builtin, true);
4.26.0

1 year ago

4.26.1

1 year ago

4.25.0

1 year ago

4.23.4

2 years ago

4.23.5

2 years ago

4.23.0

2 years ago

4.22.8

2 years ago

4.22.5

2 years ago

4.22.6

2 years ago

4.22.7

2 years ago

4.22.10

2 years ago

4.22.20

2 years ago

4.22.0

3 years ago

4.21.1

3 years ago

4.21.0

3 years ago

4.19.1

3 years ago

4.17.7

3 years ago

4.17.1

3 years ago

4.17.0

3 years ago