[Annotated corpus/guidelines/dataset] Part-of-Speech annotations in the Spanish Clinical Case Corpus.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


SPACCC_POS: Spanish Clinical Case Corpus - Part-of-Speech

Digital Object Identifier (DOI) and access to dataset files



This repository contains the Part-of-Speech (POS) annotations in the Spanish Clinical Case Corpus. 20% of the corpus was annotated manually by two annotators, while the remaining 80% was annotated automatically with the Spanish Clinical Case Corpus Part-of-Speech Tagger (SPACCC_POS-TAGGER, https://github.com/PlanTL/SPACCC_POS-TAGGER), with an implemented version of the FreeLing3.1 tool, which mimics the criteria marked by the two human annotators.

The corpus has 64,865 sentences, 353,144 words and 18,281 different lemmata. The ratio of words per sentence is 5.44.

Repository structure

In this repository:

Script to convert FreeLing3.1 tabular output format into BRAT standoff format.

In Zenodo:

Original, development, validation and automatically annotated corpus, both in tabular format and BRAT 
standoff format.

Annotation guidelines.

Inter-annotator agreement report, along with the data and the scripts used to calculate it. 

Document selection

The SPACCC corpus was created after collecting 1,000 clinical cases from SciELO (Scientific Electronic Library Online), an electronic library that gathers electronic publications of complete full text articles from scientific journals of Latin America, South Africa and Spain (http://www.scielo.org).

A clinician classified those cases into those that were similar to real clinical texts in terms of structure and content and those that were not suitable for this task. Figure legends were automatically removed and, in case multiple clinical cases were listed, these were split into single clinical cases.

Annotation tool

Annotations were carried out by means of the Spanish Clinical Case Corpus Part-of-Speech Tagger based on FreeLing3.1 (SPACCC_POS-TAGGER, https://github.com/PlanTL/SPACCC_POS-TAGGER).

Annotation format

Annotations created in SPACCC_POS are stored in a CoNLL-like column format, where columns are:

  • FORM: word form.
  • LEMMA: word lemma.
  • TAG: complete POS tag.
  • PROBABILITY: probability of the chosen tag.

In addition, POS annotations are provided in BRAT standoff format; i.e. the annotations are stored separately (in an .ann file) from the document text (a .txt file). These two files are associated by their base name; their file name without suffix is the same, for example, the file es-S0004-06142005000200009-1.ann contains the annotations for the file es-S0004-06142005000200009-1.txt. See http://brat.nlplab.org/standoff.html for further details on the brat standoff format.

In the .ann file each token is labeled with its POS (in a two-character reduced version) and a legend with the following information:

  • the reduced tag
  • the full wordform
  • the lemma and the complete POS tag

This annotation format is produced by running an script that converts the output of SPACC_POS-TAGGER. The description of the FreeLing tagset may be found at https://talp-upc.gitbook.io/freeling-4-1-user-manual/tagsets/tagset-es.

Corpus predictions

The quality of the annotations at the level of sentence splitting carried out by FreeLing prior its adaptation to the clinical corpus, was measured with the development corpus: 100 randomly chosen texts (10% of the whole corpus). 98.36% of this corpus was successfully annotated. The most frequent discrepancies were those ones related to adjectives and nouns and the use of 'se' in constructions in which the clitic is attached to a gerund.

Annotation guidelines

The annotation guidelines describe the criteria that have been followed to annotate the corpus, along with illustrative examples. They describe FreeLing default resources, the criteria that have been followed in the manual annotation and the implementations that solve these criteria in automatic annotation.

Guidelines have been written and developed in Spanish and are only available in Spanish.

Corpus consistency

The following three tables show the interagreement results measured on both the development and the validation corpus. See the inter-annotator agreement report (Informe_interagreement_CNIO_PlanTL_SEAD.pdf) included in folder IAAin this repository for further details. Note that the required minimum level was 96%.

A1 vs A2 98,85%
A1 vs FL 99,47%
A2 vs FL 99,87%

Table 1: Interagreement betwen the two human annotators and SPACCC_POS_TAGGER on the development corpus.

GS vs FL 98,36%

Table 2: Interagreement between the gold standard corpus and SPACCC_POS-TAGGER on the development corpus.

GS vs FL 98,71%

Table 3: Interagreement between the gold standard corpus and SPACCC_POS-TAGGER on the validation corpus.


Montserrat Marimon (montserrat.marimon@bsc.es)


Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

Copyright (c) 2018 Secretaría de Estado para el Avance Digital (SEAD)