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

Use mongodb for model.nlp #1237

Closed
sbotalla88 opened this issue Dec 15, 2022 · 3 comments
Closed

Use mongodb for model.nlp #1237

sbotalla88 opened this issue Dec 15, 2022 · 3 comments

Comments

@sbotalla88
Copy link

I really like this lib for nlp in node.js. But I'd like to know if mongodb can be used for model.nlp. If not, can we please implement it?
Thanks!

@Apollon77
Copy link
Contributor

You can define an own "filesystem" implememtation ... see https://github.com/axa-group/nlp.js/blob/master/docs/v4/core/file-system.md

So you just need to define the needed methods and then register this own instance as "fs" container

@ericzon
Copy link
Collaborator

ericzon commented Dec 22, 2022

MongoDB can be used, in fact, we have an @nlpjs/mongodb-adapter since 2 years ago.
In the conf can be used with:

use: ['Basic', 'LangEn', 'Database', 'MongodbAdapter'...]

I hope it helps.

@ericzon ericzon closed this as completed Dec 22, 2022
@Apollon77
Copy link
Contributor

@ericzon But is the adapte rnot only a "database" topic, so for session and such ... but not for files likle the corpus file and such.

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

3 participants