# Annotation Reporter

## Description

The annotation reporter produces concordance-style reports on the content annotations in a given set of documents, either in CSV or text form. The CSV file contains the following columns:

 file the name of the document from which the entry is drawn start the start index, in characters, of the span in the document end the end index, in characters, of the span in the document left context the context to the left of the start index text the text in between the start and end indices label the label on the span in the document. If the annotation contains attributes and values, these will be represented in the label. right context the context to the right of the end index

It's also possible to omit the left and right contexts, if you prefer. The text file contains the same columns, except that file, start, and end are collapsed into a single location column.

This tool also allows you, via the --partition_by_label option, to generate CSV and text files for each content annotation label in the document set. In these versions, the annotation ID is reported in a column after the "end" column, and instead of the "label" column, the file contains a column for each known attribute of the annotation type.

It's also possible to interpolate document-level statistics such as file length and number of annotations per label into these reports.

Because the CSV files contain language data, please consult this special note on how to view them.

## Usage

### Example 2

Let's say that you only want textual output, and you don't want the concordance columns: