PolMine / dbpedia

R Wrapper for Corpus Annotation with DBpedia Spotlight
3 stars 0 forks source link

Option to use "http://api.dbpedia-spotlight.org/" #3

Closed ablaette closed 1 year ago

ablaette commented 1 year ago

Docker may be better for larger data, but use the official API.

ablaette commented 1 year ago

This is a (working) example included now:

tab <- get_dbpedia_uris(
   x = doc,
  language = "en",
  api = "http://api.dbpedia-spotlight.org/en/annotate"
)
ablaette commented 1 year ago

If no Docker container is found, option "dbpedia.endpoint" is set to "http://api.dbpedia-spotlight.org/en/annotate". The method get_dbpedia_uris() uses this option.