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
Use stemmed text to search for statement matches #1452
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gunthercox
commented
Oct 13, 2018
chatterbot/stemming.py
Outdated
# Remove stopwords | ||
if word not in self.stopwords: | ||
# Chop out the middle of the word | ||
start = self.get_chop_size(len(word)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chopping might not be required. Removing punctuation and stopwords might be enough to provide a simpler search index.
Some tests with existing data might provide more relevant support for this hypothesis.
gunthercox
force-pushed
the
stem
branch
2 times, most recently
from
October 17, 2018 08:32
ddf3c7a
to
7fbc2bb
Compare
gunthercox
changed the title
Create simple stemmer for statement text
Use stemmed text to search for statement matches
Oct 17, 2018
gunthercox
force-pushed
the
stem
branch
3 times, most recently
from
October 21, 2018 13:35
1e83d7b
to
2634e83
Compare
gunthercox
force-pushed
the
stem
branch
5 times, most recently
from
November 3, 2018 17:36
65f786f
to
205a3a8
Compare
gunthercox
force-pushed
the
stem
branch
4 times, most recently
from
November 11, 2018 18:11
cf3d890
to
dd77a85
Compare
gunthercox
force-pushed
the
stem
branch
8 times, most recently
from
November 19, 2018 11:47
647597b
to
b4c7320
Compare
gunthercox
force-pushed
the
stem
branch
2 times, most recently
from
November 24, 2018 21:49
7c627aa
to
35a7fad
Compare
gunthercox
force-pushed
the
stem
branch
2 times, most recently
from
December 9, 2018 20:57
7289b9a
to
f6e0df2
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Using the stemmed statement text should provide more efficient search and text comparison functionality.