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

Cannot select spotter #17

Open
rushdishams opened this issue Sep 17, 2018 · 1 comment
Open

Cannot select spotter #17

rushdishams opened this issue Sep 17, 2018 · 1 comment

Comments

@rushdishams
Copy link

Hello, in the annotator function parameter, I was not able to use any of the following spotters except the Default:

"LingPipeSpotter", "AtLeastOneNounSelector", "CoOccurrenceBasedSelector", "NESpotter", "KeyphraseSpotter", "OpenNLPChunkerSpotter", "WikiMarkupSpotter", "SpotXmlParser", "AhoCorasickSpotter", "Default"

Is there any work around?

annotations = spotlight.annotate(localhost, text, confidence=confidence, support=support_cutoff, spotter='AtLeastOneNounSelector) does not work. But If I take out the spotter argument completely or use spotter='Default', it works.

@originell
Copy link
Contributor

Hey!

What do you mean by "does not work"?

We simply take the argument and pass it on to the request (https://github.com/ubergrape/pyspotlight/blob/master/spotlight/__init__.py#L145). So if you see any error there, it might be due to the dbpedia server and not our code.

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