Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the schema for corpus.json file and possible entities? #1290

Open
rmtuckerphx opened this issue Mar 11, 2023 · 1 comment
Open

What is the schema for corpus.json file and possible entities? #1290

rmtuckerphx opened this issue Mar 11, 2023 · 1 comment

Comments

@rmtuckerphx
Copy link

Issue Template

Summary

Looking at this sample corpus.json file (https://github.com/axa-group/nlp.js/blob/master/examples/14-ner-corpus/corpus.json) I see that the entities sectioncan be an enum of values (hero) or a regex (email).

What other entity types are supported?
Is there a published schema for corpus.json?

Your Environment

Software Version
nlp.js 4.26.1
node 16.16.0
npm 8.13.2
Operating System Windows 11
@MarketingPip
Copy link

You can find a structure of JSON schema's for this here & all the entity types that can be defined here.

Hope this helps @rmtuckerphx

ps; not an official contributor / maintainer! But please close this issue when you get a chance! (Assuming I answered your question). Cheers 🥂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants