We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a linker that connects to DBpedia using the API of DBpedia spotlight. Something similar to this should be added:
def dbpedia_spot(text): address = 'https://api.dbpedia-spotlight.org/en/annotate' payload = { 'confidence': 0.6, 'support': 0, 'text': text, 'policy': 'whitelist'} response = requests.post(address, data=payload, headers={'accept': 'application/json'}) json_body = response.json() resources = [] if 'Resources' in json_body.keys(): for res in json_body['Resources']: res2 = {'uri': res['@URI'], res['@end']], 'type': res['@types'].split(','), 'label': res['@surfaceForm']} resources.append(res2) return resources
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Create a linker that connects to DBpedia using the API of DBpedia spotlight. Something similar to this should be added:
The text was updated successfully, but these errors were encountered: