gunthercox / chatterbot-corpus

A multilingual dialog corpus
http://chatterbot-corpus.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.36k stars 1.15k forks source link

Attribute error while training on yml corpus #169

Closed AhmadManzoor closed 2 years ago

AhmadManzoor commented 4 years ago

/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'

NitValen commented 4 years ago

I have the same error. Did you solve the problem ?

Ahmad-noborders commented 4 years ago

please recheck your training file and validate if there is no syntax problem. try with lesser data and see if problem persists.

in11f4 commented 2 years ago

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.