Closed AhmadManzoor closed 2 years ago
I have the same error. Did you solve the problem ?
please recheck your training file and validate if there is no syntax problem. try with lesser data and see if problem persists.
Reviving an old thread. Hopefully the problem is solved now!
@NitValen : If you have any doubts, reply to this thread and I can post a sample file.
/home/abubakar/.local/lib/python3.6/site-packages/chatterbot/corpus.py:38: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. return yaml.load(data_file) Training movies_google_assistant.yml: [# ] 7%Traceback (most recent call last): File "chatbot.py", line 9, in
trainer.train('/home/abubakar/Desktop/movies_google_assistant.yml')
File "/home/abubakar/.local/lib/python3.6/site-packages/chatterbot/trainers.py", line 157, in train
statement_search_text = self.chatbot.storage.tagger.get_bigram_pair_string(text)
File "/home/abubakar/.local/lib/python3.6/site-packages/chatterbot/tagging.py", line 159, in get_bigram_pair_string
for sentence in self.tokenize_sentence(text.strip()):
AttributeError: 'list' object has no attribute 'strip'