ubergrape / pyspotlight

A thin wrapper around the DBPedia Spotlight REST API
BSD 2-Clause "Simplified" License
58 stars 25 forks source link

Cannot select spotter #17

Open rushdishams opened 6 years ago

rushdishams commented 6 years ago

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 commented 6 years ago

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.