The News Annotation (German) service retrieves various types of entities from texts as well as the relations between them. The extraction is based on gazetteers from trusted sources (such as the curated Freebase, DBpedia, etc.) and a combination of rule-based and machine learning techniques. The service applies word sense disambiguation techniques and attaches a unique URI to each extracted entity or relation.
The details on the recognised entity types for the News Annotation (German) service are available on the News Annotation page.
The details on the REST API for the News Annotation (German) service are available on the Text Analytics page.
In our example we will use a very simple request for annotating just a couple of sentences of text from a DW news article:
For the sake of clarity, if you annotate the sample text above with the demo UI of S4 you will see a result like this:
The JSON request for the News service will look like (Please refer to the Text Analytics page for details on the JSON input/output formats):
We are now ready to send a simple RESTful request to the S4 text analytics services using a simple command line tool like curl:
The full JSON response is available below.
Some important details:
Skip to end of metadata Go to start of metadata