MCPcopy Create free account

hub / github.com/Qiware/aibot / functions

Functions64 in github.com/Qiware/aibot

↓ 6 callersMethodsimhash
(self, tokens)
storage/simhash.py:16
↓ 4 callersMethodfind
(self, text)
storage/storage.py:212
↓ 3 callersMethodadd
(self, text, resp)
storage/storage.py:103
↓ 3 callersMethodget_response
(self, text)
chatbot.py:14
↓ 2 callersMethodfind_from_conversation_dict
(self, hash_val)
storage/storage.py:118
↓ 2 callersMethodgen_key_list
功能描述: 生成关键字列表. 注意事项: 列表中关键字越来越短, 因此越靠前匹配出来的结果可靠性越高.
storage/storage.py:30
↓ 1 callersMethod_string_hash
(self, source)
storage/simhash.py:48
↓ 1 callersMethodadd_response
Add the response to the list if it does not already exist.
conversation/statement.py:46
↓ 1 callersMethodchat_handler
请求报体: {"uid":123456, roomid=1000000015, "gid":5, "text":"你好"} 应答报体: {"uid":123456, roomid=1000000015, "gid":5, "text":"你好, 有事吗?"}
main.py:32
↓ 1 callersMethoddump
(self)
chatbot.py:30
↓ 1 callersMethodfind_from_reverse_dict
功能描述: 当词的所占权重低于平均权重的20%时, 不对其构建索引, 也不对其进行搜索. 参数列表: @hash_val: 文本text的SIM哈希值 @text: 聊天文本
storage/storage.py:129
↓ 1 callersMethodget_file_path
Reads a dotted file path and returns the file path.
corpus/corpus.py:9
↓ 1 callersMethodinsert_into_conversation_dict
功能描述: 插入对话词典 参数列表: @hash: 文本text的哈希值 @text: 文本text @resp: 文本text对应的应答 注意事项: 对话词典以文本text的哈
storage/storage.py:57
↓ 1 callersMethodinsert_into_reverse_dict
功能描述: 插入倒排词典 参数列表: @hash: 文本text的哈希值 @text: 文本text 注意事项: 当词的所占权重低于平均权重的20%时, 不对其构建索引, 也不对其进行搜索.
storage/storage.py:69
↓ 1 callersMethodlist_corpus_files
Return a list of file paths to each data file in the specified corpus.
corpus/corpus.py:36
↓ 1 callersMethodload_corpus
Return the data contained within a specified corpus.
corpus/corpus.py:55
↓ 1 callersFunctionload_userdict
()
train.py:6
↓ 1 callersFunctionload_userdict
Load user dictionary
main.py:16
↓ 1 callersMethodread_corpus
Read and return the data from a corpus json file.
corpus/corpus.py:25
↓ 1 callersMethodremove
(self, key)
storage/reversedict.py:60
↓ 1 callersMethodtrain
(self, dot_path)
chatbot.py:17
Method__eq__
(self, other)
conversation/response.py:16
Method__eq__
(self, other)
conversation/statement.py:28
Method__init__
(self, name)
chatbot.py:10
Method__init__
(self, text, **kwargs)
conversation/response.py:6
Method__init__
(self, text, **kwargs)
conversation/statement.py:11
Method__init__
(self, value='Recieved an unexpected value type.')
conversation/statement.py:108
Method__init__
(self)
storage/storage.py:15
Method__init__
(self, weight, text)
storage/reversedict.py:9
Method__init__
(self)
storage/reversedict.py:14
Method__init__
(self)
storage/conversationdict.py:9
Method__init__
(self, tokens='', hashbits=128)
storage/simhash.py:7
Method__init__
(self)
storage/simhashdict.py:10
Method__init__
(self)
corpus/corpus.py:5
Method__repr__
(self)
conversation/response.py:13
Method__repr__
(self)
conversation/statement.py:25
Method__str__
(self)
conversation/response.py:10
Method__str__
(self)
conversation/statement.py:22
Method__str__
(self)
conversation/statement.py:111
Method__str__
(self)
storage/simhash.py:12
Methodadd
(self, key, weight, text)
storage/reversedict.py:33
Methodadd
(self, hash_val, req_text, rsp_text)
storage/conversationdict.py:28
Methodadd
(self, text)
storage/simhashdict.py:29
Methodadd_extra_data
This method allows additional data to be stored on the statement object.
conversation/statement.py:38
Methoddo_GET
(self)
main.py:79
Methoddo_POST
(self)
main.py:85
Methoddump
(self)
storage/storage.py:22
Methoddump
(self)
storage/reversedict.py:25
Methoddump
(self)
storage/conversationdict.py:20
Methoddump
(self)
storage/simhashdict.py:21
Methodfind
(self, key)
storage/reversedict.py:57
Methodfind
(self, hash_val)
storage/conversationdict.py:38
Methodfind
(self, text)
storage/simhashdict.py:47
Methodget_response_count
Return the number of times the statement occurs in the database.
conversation/statement.py:80
Methodhamming_distance
(self, other)
storage/simhash.py:32
Methodprintx
(self)
chatbot.py:35
Methodprintx
(self)
storage/storage.py:27
Methodprintx
(self)
storage/conversationdict.py:41
Methodremove
(self, hash_val)
storage/conversationdict.py:47
Methodremove
(self, text)
storage/simhashdict.py:51
Methodremove_response
Removes a response from the statement's response list based on the value of the response text.
conversation/statement.py:68
Methodserialize
(self)
conversation/response.py:25
Methodserialize
Returns a dictionary representation of the current object.
conversation/statement.py:91
Methodsimilarity
(self, other)
storage/simhash.py:41