MCPcopy
hub / github.com/gunthercox/ChatterBot / remove

Method remove

chatterbot/storage/mongodb.py:257–261  ·  view source on GitHub ↗

Removes the statement that matches the input text.

(self, statement_text)

Source from the content-addressed store, hash-verified

255 return self.mongo_to_object(list(statements)[0])
256
257 def remove(self, statement_text):
258 """
259 Removes the statement that matches the input text.
260 """
261 self.statements.delete_one({'text': statement_text})
262
263 def drop(self):
264 """

Callers 15

test_load_corpus_fileMethod · 0.45
test_removeMethod · 0.45
test_remove_responseMethod · 0.45
test_removeMethod · 0.45
test_removeMethod · 0.45
test_remove_responseMethod · 0.45
test_removeMethod · 0.45
test_removeMethod · 0.45
_destroy_test_corpusMethod · 0.45
test_downloadMethod · 0.45

Calls

no outgoing calls

Tested by 13

test_load_corpus_fileMethod · 0.36
test_removeMethod · 0.36
test_remove_responseMethod · 0.36
test_removeMethod · 0.36
test_removeMethod · 0.36
test_remove_responseMethod · 0.36
test_removeMethod · 0.36
test_removeMethod · 0.36
_destroy_test_corpusMethod · 0.36
test_downloadMethod · 0.36