You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@nlpjs/builtin-compromise

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nlpjs/builtin-compromise

Builtin Named Entity Recognition with Compromise

5.0.0-alpha.5
latest
Source
npmnpm
Version published
Weekly downloads
119
-1.65%
Maintainers
3
Weekly downloads
 
Created
Source

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);

FAQs

Package last updated on 23 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.