diff --git a/chatterbot/tagging.py b/chatterbot/tagging.py index ea3c31d26..f838e3978 100644 --- a/chatterbot/tagging.py +++ b/chatterbot/tagging.py @@ -23,7 +23,10 @@ def __init__(self, language=None): self.punctuation_table = str.maketrans(dict.fromkeys(string.punctuation)) - self.nlp = spacy.load(self.language.ISO_639_1.lower()) + if self.language.ISO_639_1.lower() == 'en': + self.nlp = spacy.load('en_core_web_trf') + else: + self.nlp = spacy.load(self.language.ISO_639_1.lower()) def get_text_index_string(self, text): """ diff --git a/setup.py b/setup.py index 7d47a7843..51e456093 100644 --- a/setup.py +++ b/setup.py @@ -69,7 +69,7 @@ include_package_data=True, install_requires=REQUIREMENTS, dependency_links=DEPENDENCIES, - python_requires='>=3.4, <=3.8', + python_requires='>=3.8', license='BSD', zip_safe=True, platforms=['any'],