Skip to content

Typescript class for the NLP Engine that calls the nlp.exe command line

Notifications You must be signed in to change notification settings

VisualText/ts-nlp-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Typescipt Class for the NLP Engine

This class calls the nlp.exe using the command line version of the engine: nlp.exe.

Example:

    const analyzer = 'Telephone-Nummbers';
    const parentPath = path.dirname(__dirname);
    const engineDir = path.join(parentPath, 'nlp-engine-linux');
    const analyzersDir = path.join(parentPath, 'nlp-engine-linux', 'analyzers');

    const filename = "text.txt";
    const nlpEngine = new NLPEngine(engineDir, analyzersDir);
    nlpEngine.analyzeStr(analyzer, filename, text);

    const outputContents = nlpEngine.outputFileContents(analyzer, filename, 'codes.json');

About

Typescript class for the NLP Engine that calls the nlp.exe command line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published