【发布时间】:2019-09-02 09:20:39
【问题描述】:
我正在尝试使用 Android Studio 上的 Kotlin 在我的 Pepper 机器人上集成聊天机器人。我只是一步一步地按照这个教程。
Testing your Dialogflow agent in standalone
但是当我在 Kotlin REPL 中执行此操作时(在模块数据中):
import com.softbankrobotics.chatwithdialogflow.data.DialogflowDataSource
import java.io.File
val stream = File("C:/Users/yuhliu/ChatWithDialogflow/app/src/main/res/raw/credentials.json").inputStream()
val dataSource = DialogflowDataSource(stream)
dataSource.detectIntentTexts("sois intelligent", "my-test-session", "fr")
我收到了这个错误
错误:未解决的参考:softbankrobotics 导入 com.softbankrobotics.chatwithdialogflow.data.DialogflowDataSource
我是 Kotlin 的新手。你知道这里出了什么问题吗?
【问题讨论】:
标签: android kotlin chatbot pepper