Socket
Socket
Sign inDemoInstall

botpress-nlu

Package Overview
Dependencies
9
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    botpress-nlu

Botpress NLU module


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Botpress NLU ⚡

Botpress NLU is a Botpress module that adds NLU capatibilities to your bot by connecting to the NLU provider of your choice.

🚧 I'm looking for help to support more providers

Provider🚩 Status
LUIS
DialogFlowHelp needed
RASAHelp needed

We believe NLP/NLU is a commodity, so this package abstracts the provider by providing a standard, clean interface that allows you (and the non-technicals) to easily edit the NLU data within Botpress. We are building the interface for proper NLU, we are NOT involved in actually providing the NLU.

With Botpress NLU,

  • You own your data
  • You can seamlessly switch to another NLP provider
  • (soon) You can continously train your bot on misunderstood phrases
  • (soon) You can share and import open-source, community-curated intents & entities

Installation

⚠️ This module only works with the upcoming Botpress X.

  • Install the module yarn add botpress-nlu
  • Configure a provider (see below)

Standard NLU Object (event.nlu)

Botpress NLU will instrument incoming events by providing a standardized object with the structure below.

PathDescriptionSupported by
nlu.intent.nameThe name of the classified intentLUIS
nlu.intent.confidenceConfidence of the classification, between 0 and 1, higher the betterLUIS
nlu.intent.providerThe provider that provided the classificationLUIS
nlu.entities[i].nameThe name of the extracted entitiy-
nlu.entities[i].typeThe type of entity that was extractedLUIS
nlu.entities[i].valueThe normalized value of the extracted entityLUIS
nlu.entities[i].originalThe original (raw) value of the extracted entity-
nlu.entities[i].confidenceThe provider that extracted the entityLUIS
nlu.entities[i].positionThe position where it was found in the input string (start position)LUIS
nlu.sentimentTBD-
nlu.languageTBD-

LUIS

LUIS Configuration (source)

KeyEnvironment VariableRequired
luisAppIdNLU_LUIS_APP_IDYes
luisProgrammaticKeyNLU_LUIS_PROGRAMMATIC_KEYYes
luisAppSecretNLU_LUIS_APP_SECRETYes
luisAppRegionNLU_LUIS_APP_REGIONNo (default is westus)

LUIS Caveats

There are some entities that LUIS doesn't support in some languages, make sure that the language you are using supports the entities you are using in Botpress (this module doesn't do this check for you).

LUIS FAQ

I get an error when syncing my model (click to see) Make sure that:
  • You have enough labels (min 2) for the intent
  • The entities you are using are supported by your app's language

Contributing

The best way to help right now is by helping with the exising issues here on GitHub and by reporting new issues!

License

Botpress is dual-licensed under AGPLv3 and the Botpress Proprietary License.

By default, any bot created with Botpress is licensed under AGPLv3, but you may change to the Botpress License from within your bot's web interface in a few clicks.

For more information about how the dual-license works and why it works that way please see the FAQS.

FAQs

Last updated on 28 Jan 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc