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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -