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

Add closest-match logic adapter #44

Merged
merged 1 commit into from
Sep 12, 2015
Merged

Add closest-match logic adapter #44

merged 1 commit into from
Sep 12, 2015

Conversation

gunthercox
Copy link
Owner

I've started looking into using NLTK to compare two statements by the meaning of their content.
Closest Match

  • Determine close matches based on the nearness of the meaning of word synsets.

@@ -0,0 1,94 @@
from .logic import LogicAdapter
from collections import Counter
import nltk
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In your tests you should be installing nltk, and you probably want to guard against the ImportError here and raise a useful message.

No need to require it in your setup.py, as it's only needed for this adapter.

I've started looking into using nltk to compare two statements by
the meaning of their content. This branch is currently in a work
in progress state.
gunthercox added a commit that referenced this pull request Sep 12, 2015
Add closest-match logic adapter
@gunthercox gunthercox merged commit 68c11f4 into master Sep 12, 2015
@gunthercox gunthercox deleted the closest_meaning branch September 12, 2015 12:18
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.

2 participants