botonic icon indicating copy to clipboard operation
botonic copied to clipboard

I am getting error once i run botonic train

Open aalisher5 opened this issue 3 years ago • 0 comments

Describe the bug I have created a new blank botonic project, i tried to enable nlu as per the instruction

  1. In the bot directory, enter npm install @botonic/plugin-nlu.

  2. Create two types of intents, i.e. two text files called chitchat.txt and help.txt in src/nlu/utterances/en containing utterances related to an intent. You must create at least two files to make the NLU plugin work.

  3. Enter the content of your choice in both files. In our example, we are going to add content to the help.txt file. Make sure to add a line break between each intent.

src/nlu/utterances/en/help.txt 4. Open src/docs/plugins.js and add @botonic/plugin-nlu into your plugins array.

  1. Run botonic train. This will generate a prediction model based on the added examples.

I am getting the error

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] train:ner: ts-node src/nlp/tasks/ner/train.ts npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] train:ner script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above

aalisher5 avatar Jun 07 '22 12:06 aalisher5