axa-group / nlp.js

An NLP library for building bots, with entity extraction, sentiment analysis, automatic language identify, and so more
MIT License
6.23k stars 617 forks source link

Example not fully functional (no answers in V4 react) #994

Closed Macilias closed 2 years ago

Macilias commented 2 years ago

Describe the bug I refactored my codebase to use V4 in react native but discovered that even with the plain example: https://github.com/axa-group/nlp.js/blob/fce132ee879a9cd44966a577879dff27210c278b/docs/v4/webandreact.md no answers are generated.

To Reproduce Steps to reproduce the behavior:

  1. Follow the example: https://github.com/axa-group/nlp.js/blob/fce132ee879a9cd44966a577879dff27210c278b/docs/v4/webandreact.md in react-native
  2. process Hi
  3. check the result, no answers.

Expected behavior on of the trained answers should be part of the result

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

Macilias commented 2 years ago

I was feeding the training with full locale "en_EN" and not just "en". Sorry my bad.