[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data] C:\Users\FODDAJ 8\AppData\Roaming\nltk_data...
[nltk_data] Package averaged_perceptron_tagger is already up-to-
[nltk_data] date!
[nltk_data] Downloading package punkt to C:\Users\FODDAJ
[nltk_data] 8\AppData\Roaming\nltk_data...
[nltk_data] Package punkt is already up-to-date!
[nltk_data] Downloading package stopwords to C:\Users\FODDAJ
[nltk_data] 8\AppData\Roaming\nltk_data...
[nltk_data] Package stopwords is already up-to-date!
Traceback (most recent call last):
File "D:\project\pythonProject1\index.py", line 7, in
trainer.train("chatterbot.corpus.english")
File "D:\project\pythonProject1\venv\Lib\site-packages\chatterbot\trainers.py", line 138, in train
for corpus, categories, file_path in load_corpus(*data_file_paths):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\project\pythonProject1\venv\Lib\site-packages\chatterbot\corpus.py", line 64, in load_corpus
corpus_data = read_corpus(file_path)
^^^^^^^^^^^^^^^^^^^^^^
File "D:\project\pythonProject1\venv\Lib\site-packages\chatterbot\corpus.py", line 38, in read_corpus
return yaml.load(data_file)
^^^^^^^^^^^^^^^^^^^^
File "D:\project\pythonProject1\venv\Lib\site-packages\yaml__init__.py", line 72, in load
return loader.get_single_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\project\pythonProject1\venv\Lib\site-packages\yaml\constructor.py", line 37, in get_single_data
return self.construct_document(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\project\pythonProject1\venv\Lib\site-packages\yaml\constructor.py", line 46, in construct_document
for dummy in generator:
^^^^^^^^^
File "D:\project\pythonProject1\venv\Lib\site-packages\yaml\constructor.py", line 397, in construct_yaml_map
value = self.construct_mapping(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\project\pythonProject1\venv\Lib\site-packages\yaml\constructor.py", line 203, in construct_mapping
return super().construct_mapping(node, deep=deep)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\project\pythonProject1\venv\Lib\site-packages\yaml\constructor.py", line 126, in construct_mapping
raise ConstructorError("while constructing a mapping", node.start_mark,
yaml.constructor.ConstructorError: while constructing a mapping
in "D:\project\pythonProject1\venv\Lib\site-packages\chatterbot_corpus\data\english\ai.yml", line 1, column 1
found unhashable key
in "D:\project\pythonProject1\venv\Lib\site-packages\chatterbot_corpus\data\english\ai.yml", line 4, column 1
[nltk_data] Downloading package averaged_perceptron_tagger to [nltk_data] C:\Users\FODDAJ 8\AppData\Roaming\nltk_data... [nltk_data] Package averaged_perceptron_tagger is already up-to- [nltk_data] date! [nltk_data] Downloading package punkt to C:\Users\FODDAJ [nltk_data] 8\AppData\Roaming\nltk_data... [nltk_data] Package punkt is already up-to-date! [nltk_data] Downloading package stopwords to C:\Users\FODDAJ [nltk_data] 8\AppData\Roaming\nltk_data... [nltk_data] Package stopwords is already up-to-date! Traceback (most recent call last): File "D:\project\pythonProject1\index.py", line 7, in
trainer.train("chatterbot.corpus.english")
File "D:\project\pythonProject1\venv\Lib\site-packages\chatterbot\trainers.py", line 138, in train
for corpus, categories, file_path in load_corpus(*data_file_paths):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\project\pythonProject1\venv\Lib\site-packages\chatterbot\corpus.py", line 64, in load_corpus
corpus_data = read_corpus(file_path)
^^^^^^^^^^^^^^^^^^^^^^
File "D:\project\pythonProject1\venv\Lib\site-packages\chatterbot\corpus.py", line 38, in read_corpus
return yaml.load(data_file)
^^^^^^^^^^^^^^^^^^^^
File "D:\project\pythonProject1\venv\Lib\site-packages\yaml__init__.py", line 72, in load
return loader.get_single_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\project\pythonProject1\venv\Lib\site-packages\yaml\constructor.py", line 37, in get_single_data
return self.construct_document(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\project\pythonProject1\venv\Lib\site-packages\yaml\constructor.py", line 46, in construct_document
for dummy in generator:
^^^^^^^^^
File "D:\project\pythonProject1\venv\Lib\site-packages\yaml\constructor.py", line 397, in construct_yaml_map
value = self.construct_mapping(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\project\pythonProject1\venv\Lib\site-packages\yaml\constructor.py", line 203, in construct_mapping
return super().construct_mapping(node, deep=deep)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\project\pythonProject1\venv\Lib\site-packages\yaml\constructor.py", line 126, in construct_mapping
raise ConstructorError("while constructing a mapping", node.start_mark,
yaml.constructor.ConstructorError: while constructing a mapping
in "D:\project\pythonProject1\venv\Lib\site-packages\chatterbot_corpus\data\english\ai.yml", line 1, column 1
found unhashable key
in "D:\project\pythonProject1\venv\Lib\site-packages\chatterbot_corpus\data\english\ai.yml", line 4, column 1