New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mgnlq_er

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mgnlq_er

entity recognition

latest
Source
npmnpm
Version
0.0.8
Version published
Maintainers
1
Created
Source

mgnlq_erBuild Status Coverage Status

Entity recognition for mongo nlq

entity recognition based on word categorization

the word categorization contains a bitmap filter to retain only sencences which are homogeneous in one domain

entity recognition based on word categorization

Words are categorized according to an index (see mgnlq-model)

into

  • "Facts",
  • "Categories",
  • "Domain",
  • "Operators",
  • "Fillers",
  • "Any" (generic verbatim strings)

The word categorization contains a bitmap filter to retain only sencences which are homogeneous in one domain.

The word index is built by mgnlq_model

usage:

  var erbase = require('mgnlq_er');
  var words = {}; // a cache!
  var res = Erbase.processString('orbit of the earth', theModel.rules, words);

result structure is a set of sentences and associated errors

sentences are further pruned by removing: sentences containing Words containing identical strings which are mapped onto distinct entities, sentences containing Words containing distinct strings which are mapped on the same entity ( if a better match exists )

Test data

the tests run against recorded data in E:\projects\nodejs\botbuilder\mgnlq_testmodel_replay\mgrecrep\data\807d3ce983c2f3....

This data can be recorded by setting

SET MGNQL_MODEL_NO_FILECACHE=1

0.0.4 -> single result in checkOneRule

entity recognition mgnlq_er parsing mgnlq_parser1 querying

Keywords

typescript

FAQs

Package last updated on 01 Nov 2019

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