Botpress: Botpress Native NLU - Not working

Created on 27 May 2019  路  7Comments  路  Source: botpress/botpress

Hi i am new to botpress, i have downloaded new binary version v11.9
I am using Native NLU to my chatbot, intents are coming for the sentences that i have configured in understanding -> intents . but it is not working for the other sentences.

Example 1 [Configured in UI - Intents list]:
Input: I am John
Output: Intent as nickname

Example 1 [not Configured in UI - Intents list]:
Input: I am Stephan
Output: empty intent

Mod[nlu] Could not extract whole NLU data, TypeError: Cannot read property 'find' of undefined [TypeError, Cannot read property 'find' of undefined]
STACK TRACE
TypeError: Cannot read property 'find' of undefined
at _lodash.default.zip.filter (/var/www/html/Q&A/botpress-v11_9_next-2019-05-21-linux-x64/modules/.cache/module__1e1c5c49f2a8bf2c3f55da802dea109ee7221cc6344822d2c9427a13f70003d7/dist/backend/pipelines/slots/crf_extractor.js:143:30)
at Array.filter ()
at CRFExtractor.extract (/var/www/html/Q&A/botpress-v11_9_next-2019-05-21-linux-x64/modules/.cache/module__1e1c5c49f2a8bf2c3f55da802dea109ee7221cc6344822d2c9427a13f70003d7/dist/backend/pipelines/slots/crf_extractor.js:137:50)

Botpress version - V11.9
Node js - 10.15.3

bug wontfix

Most helpful comment

We are releasing a patch in a couple of hours to address this, please try with 12.0.2 soon

All 7 comments

+1 facing same error Botpress Version 11.9.4

Can you download the latest version and try again? Just copy bp, modules and bindings from the new version to your existing Botpress installation so you won't lose anything.

Updated to 11.9.5...
20:54:29.418 Launcher ========================================
Botpress Server
Version 11.9.5
OS darwin
========================================
Still same error

20:55:09.900 Mod[nlu] Could not extract whole NLU data, TypeError: Cannot read property 'find' of undefined [TypeError, Cannot read property 'find' of undefined]
STACK TRACE
TypeError: Cannot read property 'find' of undefined
at _lodash.default.zip.filter (/Applications/Workspace/bot-master/botpress_j/modules/nlu/dist/backend/pipelines/slots/crf_extractor.js:143:30)
at Array.filter ()
at CRFExtractor.extract (/Applications/Workspace/bot-master/botpress_j/modules/nlu/dist/backend/pipelines/slots/crf_extractor.js:137:50)

yarn run v1.16.0
$ cd ./out/bp && cross-env NODE_PATH=./ cross-env BP_MODULES_PATH=../../modules:../../internal-modules node index.js
17:35:01.502 Launcher ========================================
Botpress Server
Version 12.0.1
OS darwin

17:35:18.537 Mod[nlu] Restoring models 'f9f6d2168f2c46fd1b3103413dc3d70b' from storage
17:35:18.554 Mod[nlu] Could not load models from storage [Error, Language "en" is not supported by the configured language sources]
STACK TRACE
Error: Language "en" is not supported by the configured language sources
at RemoteLanguageProvider.getAvailableProviders (/Applications/Workspace/bot-master/botpress_j/modules/nlu/dist/backend/language-provider.js:235:13)
at RemoteLanguageProvider.queryProvider (/Applications/Workspace/bot-master/botpress_j/modules/nlu/dist/backend/language-provider.js:242:28)
at RemoteLanguageProvider.tokenize (/Applications/Workspace/bot-master/botpress_j/modules/nlu/dist/backend/language-provider.js:386:31)
at /Applications/Workspace/bot-master/botpress_j/modules/nlu/dist/backend/pipelines/slots/pre-processor.js:37:42
at ConfusionEngine.scopedGenerateTrainingSequence (/Applications/Workspace/bot-master/botpress_j/modules/nlu/dist/backend/pipelines/slots/pre-processor.js:90:36)
at Promise.all.map (/Applications/Workspace/bot-master/botpress_j/modules/nlu/dist/backend/engine.js:118:167)
at Array.map ()
at /Applications/Workspace/bot-master/botpress_j/modules/nlu/dist/backend/engine.js:118:133
at arrayMap (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/lodash/lodash.js:639:23)
at map (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/lodash/lodash.js:9556:14)
at Function.flatMap (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/lodash/lodash.js:9259:26)
at /Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/lodash/lodash.js:4374:28
at arrayReduce (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/lodash/lodash.js:683:21)
at baseWrapperValue (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/lodash/lodash.js:4373:14)
at LodashWrapper.wrapperValue (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/lodash/lodash.js:9052:14)
at ConfusionEngine.ScopedEngine._defineProperty [as getTrainingSets] (/Applications/Workspace/bot-master/botpress_j/modules/nlu/dist/backend/engine.js:116:189)
17:35:18.557 Mod[nlu] Retraining model

Team any update on this issue?

15:44:09.138 Mod[nlu] Could not load Language Provider at undefined: ETIMEDOUT [Error, operation timed out after 1007 ms, 2 tries with error: Request failed with status code 404]
STACK TRACE
Error: operation timed out after 1007 ms, 2 tries with error: Request failed with status code 404
at /Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird-retry/lib/bluebird-retry.js:109:35
at tryCatcher (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/util.js:16:23)
at /Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/catch_filter.js:24:41
at tryCatcher (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/promise.js:517:31)
at Promise._settlePromise (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/promise.js:574:18)
at Promise._settlePromise0 (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/promise.js:619:10)
at Promise._settlePromises (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/promise.js:695:18)
at _drainQueueStep (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at process.topLevelDomainCallback (domain.js:120:23)
15:44:10.149 Mod[nlu] Could not load Language Provider at undefined: ETIMEDOUT [Error, operation timed out after 1009 ms, 2 tries with error: Request failed with status code 404]
STACK TRACE
Error: operation timed out after 1009 ms, 2 tries with error: Request failed with status code 404
at /Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird-retry/lib/bluebird-retry.js:109:35
at tryCatcher (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/util.js:16:23)
at /Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/catch_filter.js:24:41
at tryCatcher (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/promise.js:517:31)
at Promise._settlePromise (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/promise.js:574:18)
at Promise._settlePromise0 (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/promise.js:619:10)
at Promise._settlePromises (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/promise.js:695:18)
at _drainQueueStep (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (/Applications/Workspace/bot-master/botpress_j/modules/nlu/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at process.topLevelDomainCallback (domain.js:120:23)

After launching application getting about error from today morning. Tried by running language server in local as well. Still getting error

We are releasing a patch in a couple of hours to address this, please try with 12.0.2 soon

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mhjb picture mhjb  路  6Comments

JijeshP picture JijeshP  路  8Comments

jbourassa picture jbourassa  路  12Comments

crixx picture crixx  路  6Comments

crixx picture crixx  路  5Comments