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

Use stemmed text to search for statement matches #1452

Merged
merged 3 commits into from Dec 15, 2018
Merged

Use stemmed text to search for statement matches #1452

merged 3 commits into from Dec 15, 2018

Conversation

gunthercox
Copy link
Owner

@gunthercox gunthercox commented Oct 13, 2018

Using the stemmed statement text should provide more efficient search and text comparison functionality.

# Remove stopwords
if word not in self.stopwords:
# Chop out the middle of the word
start = self.get_chop_size(len(word))
Copy link
Owner Author

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 gunthercox changed the title Create simple stemmer for statement text Use stemmed text to search for statement matches Oct 17, 2018
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

Successfully merging this pull request may close these issues.

None yet

1 participant