axa-group / nlp.js

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

How to represent entities in Corpus.json? #1118

Closed obaid closed 2 years ago

obaid commented 2 years ago

I am looking at the sample corpus: https://raw.githubusercontent.com/jesus-seijas-sp/nlpjs-examples/master/01.quickstart/02.filecorpus/corpus-en.json

and trying to figure out how can I provide custom entities and other entities and slots information via the corpus?

gcleaves commented 2 years ago

I have the same question, did you close the issue because you discovered the answer? Can you point me in the right direction please.

obaid commented 2 years ago

See https://github.com/axa-group/nlp.js/issues/843 for an example