Text Analysis serializations

From ITS
Revision as of 05:55, 8 May 2013 by Fsasaki (Talk | contribs)

Jump to: navigation, search

Version: 8 May 2013

Overview

The ITS 2.0 specifiation defines a normative way to represent Text Analysis information in XML and HTML locally. Text Analysis information can also be represented in other formats, e.g. JSON. This page provides a description of such alternative serializations. Please edit this page or provide comments on the ITS IG mailing list.

Comparison to NERD API output

The output of the NERD API is described in a JSON format. Here is an example API call output.

[
{
 idEntity: 120,
 label: "BBC",
 startChar: 138,
 endChar: 141,
 extractorType: "Company",
 nerdType: "http://nerd.eurecom.fr/ontology#Organization",
 uri: "http://dbpedia.org/resource/BBC",
 confidence: 0.0582796,
 relevance: 0.5,
 extractor: "dbspotlight"
},
...]

There are the following correspondences between the NERD API and Text Analysis information pieces:

  • idEntity: no correspondance
  • label: content of the annotated element in XML or HTML
  • startChar, endChar: not represented as part of Text Analysis information piece, but is generated in a NIF workflow, see conversion to NIF
  • extractorType: no correspondance
  • nerdType: entity type / concept class, e.g. in HTML its-ta-class-ref="http://nerd.eurecom.fr/ontology#Organization"
  • uri: Entity / concept identifier, e.g. in HTML its-ta-ident-ref="http://dbpedia.org/resource/BBC"
  • confidence: Text analysis confidence, e.g. in HTML its-ta-confidence="0.0582796"
  • extractor: its-annotators-ref (in HTML) or annotatorsRef (in XML) attribute, e.g. its-annotators-ref="text-analysis|dbspotlight".