probe-gate
Demonstrates the fastest endpoint that only spots surface forms without disambiguation or linking.
curl 'https://api.dbpedia-spotlight.org/en/spot?text=London+is+a+major+city+in+Europe&confidence=0.5'
import requests
resp = requests.get(
"https://api.dbpedia-spotlight.org/en/spot",
params={
'text': 'London is a major city in Europe',
'confidence': '0.5',
},
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("dbpedia-spotlight")
result = api.fetch("spot", text="London is a major city in Europe", confidence=0.5)
for item in result:
print(item)
const resp = await fetch("https://api.dbpedia-spotlight.org/en/spot?text=London+is+a+major+city+in+Europe&confidence=0.5");
const data = await resp.json();