Use mongodb for model.nlp
sbotalla88 opened this issue · comments
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!
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
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 But is the adapte rnot only a "database" topic, so for session and such ... but not for files likle the corpus file and such.