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

Modify TimeLogicAdapter to use SpaCy PhraseMatcher instead of NLTK NaiveBayesClassifier #2394

Merged
merged 4 commits into from
Feb 18, 2025

Conversation

gunthercox
Copy link
Owner

Overall the PhraseMatcher seems to be better suited for the purpose of this logic adapter (matching a set of examples of questions asking what the current time is). Notably this change was brought about by noticing that the TimeLogicAdapter was being overly confident in its identification of time related statements and was yielding a high number of false-positives.


Additionally I'm going to use this pull request to close off a number of old issues related to nltk since this logic adapter was the last place nltk was used in ChatterBot.

Closes #1746, closes #2138, closes #1953, closes #1857, closes #1856, closes #1813, closes #1800, closes #1720, closes #1618, closes #1678

@gunthercox gunthercox merged commit d5c311f into master Feb 18, 2025
1 check passed
@gunthercox gunthercox deleted the spacy branch February 18, 2025 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment