Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chatterbot error #2378

Open
2jnice04 opened this issue Sep 30, 2024 · 0 comments
Open

chatterbot error #2378

2jnice04 opened this issue Sep 30, 2024 · 0 comments

Comments

@2jnice04
Copy link

[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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant