News Annotation (German)

Skip to end of metadata
Go to start of metadata
Table of Contents


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.

Recognised entity types

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:

Bei einem Besuch in der Stadt Flint hat US-Präsident Barack Obama vor den langfristigen Folgen des dortigen Trinkwasserskandals gewarnt. Alle Eltern sollten ihre Kinder untersuchen lassen, sagte Obama in der 100.000-Einwohner-Stadt im Bundesstaat Michigan.

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:

RESTful Request

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:

JSON Result

The result of the service invocation is another JSON document (the structure is described on the Text Analytics page) which contains annotations and their offsets for various entities found in text:

  • Locations: "Flint", "Michigan"
  • Person: "Barack Obama"

The full JSON response is available below.

Some important details:

  • the original text (rows 1-3) is available
  • the offsets of the annotations in the original text are provided with the "indices" key
  • additional annotation information such as type, preferredLabel, exactMatch, string, etc is available
  • the class and the instance that the annotation represents are also available
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.