aiml

    -1熱度

    1回答

    運行時,總是「我沒有答案」的答案在程序ab中我試圖使用程序ab創建自定義聊天機器人。下面是類我已經創建 public class Test{ public static void main(String args[]){ String botname="super"; String path="F:/Jars/NLP"; Bot bot = new B

    1熱度

    1回答

    我有以下test.aiml.csv文件: - 0,GIVE^* of^INSTANCE^*,*,*, <test service="pannous"><star index = "2"/> GIVE THE DETAILS OF <star index = "5"/></test>,test.aiml 我有以下test.aiml文件: - <category><pattern>GIVE^*

    1熱度

    1回答

    我試圖讓我的機器人根據答案提出問題並回復。這個問題是隨機的,以「你好嗎?」結尾。 <aiml version = "1.0.1" encoding = "UTF-8"> <category> <pattern>HI</pattern> <template> <random> <li>Hi! How are you?</li>

    1熱度

    1回答

    import aiml import os kernel = aiml.kernel() if os.path.isfile("bot_brain.brn"): kernel.bootstrap(brainFile = "bot_brain.brn") else: kernel.bootstrap(learnFiles = "std-startup.xml", comm

    0熱度

    2回答

    我一直在嘗試使用program ab創建聊天機器人。我創建了一個簡單的aiml文件並嘗試過。但它不工作。我得到這個, Name = super Path = /aiml/bots/super c:/ab /aiml/bots /aiml/bots/super /aiml/bots/super/aiml /aiml/bots/super/aimlif /aiml/bots/super/c

    1熱度

    1回答

    你好,我正在使用program ab在java創建一個聊天bot web應用程序。如果我從外部存儲訪問文件,它正在工作。如果我將文件存儲在我的項目中,它不起作用?我不知道是什麼問題。 此代碼無效,ServerCode是我在eclipse中的項目名稱。 String botName = "super"; String botPath = "ServerCode/aiml"; Bot bot =

    1熱度

    1回答

    我對聊天機器人完全陌生,我開始着眼於將AIML和API集成到我的應用程序的想法,並開始研究AIML和Pandorabots。 經過一番閱讀,我不確定這是否是最佳選擇。我想要做的就是這樣的事情(認爲好像我的應用程序是一個書店): Human: Show me the latests books. Bot: Ok, here you can find the latest books. 我想在這

    1熱度

    1回答

    在我的一個項目中,我試圖識別給定句子中的文件名。例如,「您可以打開abc.txt」,因此我需要獲取關鍵字「open」,以便了解預期的操作類型,並且我還需要識別文件名,原因很明顯。這樣做的一個簡單的AIML標籤: <aiml> <category> <pattern>* OPEN *</pattern> <template>open <star index="2"/></tem

    0熱度

    1回答

    我是chatbots的新手,我試圖在AIML中使用OOB標記(OOB代表「帶外」,這是一個工程術語,用於指代在一個獨立的隱藏頻道)。我試着在pandorabots操場上使用它,就像這樣: <category> <pattern>SEARCH FOR *</pattern> <template>Here is what I found on Google. <oob><searc

    1熱度

    2回答

    我正在使用Java和程序ab創建chatbot。在很少的地方我不能直接回答問題,我必須處理一些事情或者調用Web服務並處理結果,然後回覆。在這種情況下,如何將我的java函數的結果包含在目標中的響應中。 說, User: What is the price of the product A? Bot: The price of product A is $50 在上面的例子中,$ 50不會是