New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nlpjs/builtin-compromise

Package Overview
Dependencies
Maintainers
0
Versions
20
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.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
0
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 12 Dec 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc