Coder Social home page Coder Social logo

ghalliday / nlp-engine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hpcc-systems/nlp-engine

0.0 1.0 0.0 42.74 MB

NLP engine code

License: MIT License

Shell 0.01% JavaScript 0.97% C++ 65.77% C 4.07% CSS 0.04% Brightscript 0.01% Makefile 0.03% HTML 28.14% CMake 0.05% Batchfile 0.91%

nlp-engine's Introduction

nlp-engine

The NLP engine is the engine that runs text analyzers writtein in NLP++. The nlp-engine runs on Linux, Windows, and MacOS. It can be called in two different ways:

  1. Calling the nlp.exe command line executable (this is what the VSCode NLP++ Language Extension does)
  2. Calling from within C++ or another language that can call c++ functions

Command Line

You can get help on nlp.exe:

  [command arg: --help]

  usage: nlp [--version] [--help]
             [-INTERP][-COMPILED] INTERP is the default
             [-ANA analyzer] name or path to NLP++ analyzer folder
             [-IN infile] input text file path
             [-OUT outdir] output directory
             [-WORK workdir] working directory
             [-DEV][-SILENT] -DEV generates logs, -SILENT (default) does not
             [infile [outfile]] when no /IN or -OUT specified

  Directories in the nlp.exe files:
     data        nlp engine bootstrap grammar
     analyzers   default location for nlp++ analyzer folders
     visualtext  common files for the VisualText IDE

Switches

Switch Function
-INTERP / -COMPILED Runs NLP++ code interpreted or compiled
-ANA name of the analyzer or path to the analyzer folder
-IN Input file
-OUT Output directory
-WORK Working director where the library and executable files are
-DEV / -SILENT -DEV generates logs, -SILENT (default) does not
[infile [outfile]] when no -IN or -OUT specified

Calling NLP++ Analyzers from C++

There is a test directory in the repository that builds a test.exe that calls analyzers using c++ code.

Test directory

The test directory contains a call to the nlp engine using buffers.

Compiling the NLP-ENGINE

The nlp engine compiles and runs on Linus, Windows, and MacOS. The easist way to compile them is using VSCode using the C++, CMake, and CMake Tools extensions.

Linux

To compile the nlp-engine for Linux:

Windows 10

To compile the nlp-engine for Windows 10:

MacOS

To compile the nlp-engine for the Mac:

NLP-ENGINE Development

We recommend developing on Linux using VSCode. On Windows, we recommend WSL using VSCode on windows.

  git clone https://github.com/visualtext/nlp-engine
  cd nlp-engine
  git remote rename origin upstream
  git remote add origin https://github.com/YOUR-USERNAME/nlp-engine
  git fetch --all

nlp-engine's People

Contributors

amnonma avatar ddehilster avatar dehilsterlexis avatar gordonsmith avatar philomath213 avatar richardkchapman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.