Skip to content

entitizer/events-detection-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

events-detection

A simple in text events detection module.

Usage

const { detect } = require('events-detection');

detect({
    lang: 'ro',
    text: 'Some text',
    // entities in text
    entities: [{index: 10, entity: {id:101, name: 'Dmitri Rogozin', type: 'person'}}]
}, (error, events) => {
    // got events if found any
});

Event object:

  • id (string)
  • title (string)
  • precision (number) - event precision: 0..1
  • entities (NamedEntity[]) - an array of named entities in event

Releases

No releases published

Packages

No packages published