ubergrape / pyspotlight

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

module 'spotlight' has no attribute 'annotate' #19

Open Shivangini-G opened 3 years ago

Shivangini-G commented 3 years ago

Hey there! I would like to kindly ask for some help. I was trying to use the spotlight module but I am getting this error... can you plz help :)

import spotlight annotations = spotlight.annotate('http://api.dbpedia-spotlight.org/en/annotate', 'President Obama on Monday hat they pay at least the same percentage',confidence=0.4, support=20, spotter='Default')

Traceback (most recent call last): File "/Users/shivanginigugalia/Documents/spot.py", line 2, in annotations = spotlight.annotate('http://api.dbpedia-spotlight.org/en/annotate', 'President Obama on Monday hat they pay at least the same percentage',confidence=0.4, support=20, spotter='Default') AttributeError: module 'spotlight' has no attribute 'annotate'

originell commented 3 years ago

Huh. That's weird. May I ask how you installed the library?

Shivangini-G commented 3 years ago

pip install pyspotlight