python - Dpedia spotlight on my own instance -


i have set own instance of dbpedia on amazon ec2 instance: http://xxxx.compute-1.amazonaws.com

i had written code access dbpedia so:

annotations = spotlight.annotate('http://spotlight.dbpedia.org/rest/annotate', document, confidence=0.4, support=20) 

where "document" string. how take have down , use on own instance?? have tried replace

http://spotlight/dbpedia.org/rest/annotate  

with http://xxxx.compute-1.amazonaws.com/rest/annotate, incorrect. assistance appreciated! thanks!

thank you!

if using command line

java -jar dbpedia-spotlight.jar /data/spotlight/en/model_en http://[your_amazon_server]:2222/rest

the service available @ http://[your_amazon_server]:2222/rest/annotate.

(notice port number 2222) also, make sure there no firewall blocking port (aws: securitygroups -> inbound).

we have more information @ https://github.com/dbpedia-spotlight/dbpedia-spotlight/wiki/installation.

all best,


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -