Skip to content

Filter results by word/phrase category #41

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

Closed
geoffrey-eisenbarth opened this issue Jun 14, 2018 · 2 comments
Closed

Filter results by word/phrase category #41

geoffrey-eisenbarth opened this issue Jun 14, 2018 · 2 comments

Comments

@geoffrey-eisenbarth
Copy link

Love the package! I was wondering if there is a way to return only results that fit one of NLTK's "Parts of Speech"? I'd love to contribute, but sadly my knowledge regarding the inner workings of NLTK is a bit lacking (at the moment!).

As an example, I'm hoping to use some NLTK/RAKE type package to automatically assign keywords to blog posts. After running a few test scenarios using the current package, I find that some of the higher-ranked keywords returned by python-rake are, say, adjectives, adverbs, etc., where I'm really hoping for nouns, noun phrases, possibly even proper nouns.

I feel like this feature would benefit anyone using the package, but I could be wrong. Thoughts?

@jkterry1
Copy link
Collaborator

This seems beyond the scope of the intent of this project to me. That being said, it seems fairly trivial to do on your own. You'd just take the list of words produced by rake, tag them with NLTK, and remove the ones with a tag you don't want to keep.

@geoffrey-eisenbarth
Copy link
Author

Understandable, thanks for the tip!

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

No branches or pull requests

2 participants