Open DuffyTheDuck opened 5 years ago
Is there a way to set spacy to use my german language model? If it is possible, what settings i have to use?
I have: from chatterbot.languages import GER and: bot = ChatBot( 'Duffy', language=GER, read_only=False, filters=['filters.get_recent_repeated_responses'], preprocessors=['chatterbot.preprocessors.clean_whitespace'], storage_adapter='chatterbot.storage.SQLStorageAdapter', logic_adapters=[{ "import_path": "chatterbot.logic.BestMatch", "statement_comparison_function": "chatterbot.comparisons.jaccard_similarity" }], database_uri='sqlite:///database.db' )
:-) in comparsions.py i set self.nlp = spacy.load("de_core_news_md") same in tagging.py in bot.py comparsion = spacy_similarity
and the results are really awesome can be closed
Is there a way to set spacy to use my german language model? If it is possible, what settings i have to use?
I have: from chatterbot.languages import GER and: bot = ChatBot( 'Duffy', language=GER, read_only=False, filters=['filters.get_recent_repeated_responses'], preprocessors=['chatterbot.preprocessors.clean_whitespace'], storage_adapter='chatterbot.storage.SQLStorageAdapter', logic_adapters=[{ "import_path": "chatterbot.logic.BestMatch", "statement_comparison_function": "chatterbot.comparisons.jaccard_similarity" }], database_uri='sqlite:///database.db' )