Skip to content
/ nlu Public
forked from botpress/nlu

This repo contains every ML/NLU related code written by Botpress in the NodeJS environment. This includes the Botpress Standalone NLU Server.

Notifications You must be signed in to change notification settings

okobsamoht/nlu

 
 

Repository files navigation

Botpress NLU

Description

This repo contains every ML/NLU related code written by Botpress in the NodeJS environment.

The source code is structured in a mono-repo fashion using yarn workspaces. The ./packages directory contains all available packages. The main packages are:

  • nlu-server: Contains the Botpress Standalone NLU Server
  • lang-server: Contains the Botpress Language Server
  • nlu-cli: Small CLI to use as an entry point for both nlu-server and lang-server

Check out each individual packages for more details.

Running from source

Prerequisites: Node 12.13 (you can use nvm) and Yarn.

  1. Run yarn to fetch node packages.
  2. Run yarn build && yarn start to build and start the Standalone NLU server.
  3. You can also run yarn dev to run the NLU Server with ts-node however, trainings won't be parallelized on several threads.

Running from pre-built binaries

New executable binary files are packaged at every release. You can download those directly on release page located here.

⚠️⚠️ Disclaimer ⚠️⚠️

The NLU Server does not enforce authentication in any way. This means it is completely exposed to many attacks. If you plan on using the nlu-server in your local Botpress setup, makes sure it is not publicly exposed. If you plan on exposing the NLU server, make sure it his hidden behind a reverse proxy which ensures a proper authentication. This reverse proxy should:

  • Ensure each appId (X-App-Id header) is unique.
  • Ensure a user with appId user1 can't call the nlu server with header X-App-Id set to anything other than user1.
  • Ensure only calls with a registered appId can call the nlu server except maybe for the GET /info route.

The NLU Server's only purpose is to do NLU.

Licensing

Different liscences may apply to differents packages of the ./packages directory. If no liscence is specified, the package is protected by the same license as the main Botpress repository. You can find the license file here.

About

This repo contains every ML/NLU related code written by Botpress in the NodeJS environment. This includes the Botpress Standalone NLU Server.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 83.7%
  • TypeScript 8.3%
  • C 6.7%
  • CMake 0.5%
  • Shell 0.2%
  • Python 0.2%
  • Other 0.4%