【问题标题】:Why Botium CLI fails extracting utterances data from DialogFlow agent?为什么 Botium CLI 无法从 DialogFlow 代理中提取话语数据?
【发布时间】:2020-07-22 11:08:00
【问题描述】:

在设置 Botium 并将其连接到我的 DialogFlow 代理(使用 Google Cloud Platform 上的 DialogFlow 管理服务帐户)后,我尝试使用命令 botium-cli nlpextract 自动从 DialogFlow 中提取数据(意图和话语)。这是我得到的错误:

user@ubuntu20:~/workspace$ export GOOGLE_APPLICATION_CREDENTIALS="/path/to/google_key.json"
user@ubuntu20:~/workspace$ botium-cli nlpextract --config botium.json --convos dataset_botium --verbose
  botium-cli Using Botium configuration file botium.json +0ms
  botium-cli-nlp command options: { _: [ 'nlpextract' ],
  botium-cli-nlp   config: 'botium.json',
  botium-cli-nlp   c: 'botium.json',
  botium-cli-nlp   convos: [ 'dataset_botium' ],
  botium-cli-nlp   C: [ 'dataset_botium' ],
  botium-cli-nlp   verbose: true,
  botium-cli-nlp   v: true,
  botium-cli-nlp   '$0': '/usr/local/bin/botium-cli' } +0ms

 (...)

  botium-connector-PluginConnectorContainer-helper Botium plugin loaded from /usr/local/lib/node_modules/botium-cli/node_modules/botium-connector-dialogflow/index.js +0ms
  botium-connector-dialogflow Validate called +0ms
  botium-connector-BaseContainer _RunCustomHook onBuild finished +0ms
  botium-connector-dialogflow Build called +1ms
  botium-connector-dialogflow-nlp Dialogflow agent: {
  botium-connector-dialogflow-nlp   "parent": ####,
  botium-connector-dialogflow-nlp   "displayName": ####,
  botium-connector-dialogflow-nlp   "defaultLanguageCode": "it",
  botium-connector-dialogflow-nlp   "timeZone": "Europe/Kaliningrad",
  botium-connector-dialogflow-nlp   "enableLogging": true,
  botium-connector-dialogflow-nlp   "matchMode": "MATCH_MODE_HYBRID",
  botium-connector-dialogflow-nlp   "classificationThreshold": 0.30000001192092896,
  botium-connector-dialogflow-nlp   "apiVersion": "API_VERSION_V2",
  botium-connector-dialogflow-nlp   "tier": "TIER_STANDARD"
  botium-connector-dialogflow-nlp } +0ms
  botium-connector-dialogflow-nlp Utterances files not found for Default Fallback Intent, checking for utterances in intents/Default Fallback Intent_usersays_en-us.json and intents/Default Fallback Intent_usersays_it.json. Ignoring intent. +20ms
  botium-connector-dialogflow Clean called +2s
  botium-connector-BaseContainer _RunCustomHook onClean finished +2s
  botium-connector-BaseContainer Cleanup rimrafing temp dir /home/user/workspace/botiumwork/agent-name 20200722 124913 wTImF +0ms
Failed to extract utterances: Cannot read property 'intents' of undefined

我在网上找不到任何关于此的信息。如果我下载 zip 文件中的代理,我插入的所有 21 个意图都是可用的,每个意图都有 85 个训练话语。

(我在 Entroware Apollo 笔记本电脑上使用 Ubuntu20)

【问题讨论】:

    标签: dialogflow-es botium-box


    【解决方案1】:

    Botium Dialogflow Connector 中存在错误。它现在已修复,并将包含在下一个版本中。

    同时,您可以使用 Github 存储库中的最新更改替换最新版本的连接器:

    npm install codeforequity-at/botium-connector-dialogflow#master
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-12-19
      • 1970-01-01
      • 1970-01-01
      • 2019-10-08
      • 2020-03-12
      • 2013-01-15
      • 2021-11-26
      相关资源
      最近更新 更多