-
Notifications
You must be signed in to change notification settings - Fork 620
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
Can't run dockStart #1317
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
After loading npm i @nlpjs/basic, I tried running sample code, but getting error at first line
To Reproduce
Steps to reproduce the behavior:
const { dockStart } = require('@nlpjs/basic');
(async () => {
const dock = await dockStart({ use: ['Basic']});
Expected behavior
No error
Get the follwing result:
node index.js (node:15564) [PINODEP008] PinoWarning: prettyPrint is deprecated, look at https:/pinojs/pino-pretty for alternatives. (Use
node --trace-warnings ...
to show where the warning was created) undefined:20 ... ^ SyntaxError: Unexpected token . in JSON at position 577 at JSON.parse () at Nlp.addCorpus (/var/lib/asterisk/agi-bin/node_modules/@nlpjs/nlp/src/nlp.js:494:54) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Nlp.addCorpora (/var/lib/asterisk/agi-bin/node_modules/@nlpjs/nlp/src/nlp.js:316:11) at async Nlp.start (/var/lib/asterisk/agi-bin/node_modules/@nlpjs/nlp/src/nlp.js:136:7) at async Container.start (/var/lib/asterisk/agi-bin/node_modules/@nlpjs/core/src/container.js:524:9) at async Dock.createContainer (/var/lib/asterisk/agi-bin/node_modules/@nlpjs/core-loader/src/dock.js:80:7) at async Dock.terraform (/var/lib/asterisk/agi-bin/node_modules/@nlpjs/core-loader/src/dock.js:114:30) at async dockStart (/var/lib/asterisk/agi-bin/node_modules/@nlpjs/core-loader/src/index.js:59:3) at async /var/lib/asterisk/agi-bin/index.js:4:16 Node.js v18.16.0Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: