File size: 1,863 Bytes
9df1364
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
be85b0b
9df1364
 
 
 
 
be85b0b
9df1364
be85b0b
9df1364
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# PIE Dataset Card for CoNLL2012 shared task data based on OntoNotes 5.0

This is a [PyTorch-IE](https://github.com/ChristophAlt/pytorch-ie) (PIE) wrapper for the
[CoNLL 2012 OntoNotes v.5.0 Huggingface dataset loading script](https://huggingface.co/datasets/conll2012_ontonotesv5).

## Dataset Variants

This dataset contains data in three languages and two versions:

- `arabic_v4`
- `chinese_v4`
- `english_v4`
- `english_v12`

## Data Schema

The document type for this dataset is `Conll2012OntonotesV5Document` which defines the following data fields:

- `id` (str)
- `tokens` (tuple)
- `pos_tags` (list)
- `metadata` (dictionary, optional)

and the following annotation layers:

- `entities` (annotation type: `LabeledSpan`, target: `tokens`)
- `parts` (annotation type: `LabeledSpan`, target: `tokens`)
- `predicates` (annotation type: `Predicate`, target: `tokens`)
- `sentences` (annotation type: `Span`, target: `tokens`)
- `coref_mentions` (annotation type: `Span`, target: `tokens`)
- `coref_clusters` (annotation type: `SpanSet`, target: `coref_mentions`)
- `srl_arguments` (annotation type: `Span`, target: `tokens`)
- `srl_relations` (annotation type: `NaryRelation`, target: `srl_arguments`)
- `word_senses` (annotation type: `LabeledSpan`, target: `tokens`)
- `speakers` (annotation type: `Attribute`, target: `sentences`)
- `parse_trees` (annotation type: `Attribute`, target: `sentences`)

See [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/annotations.py) for the annotation type definitions.

## Document Converters

The dataset provides document converters for the following target document types:

- `pie_documents.documents.TextDocumentWithLabeledSpansAndLabeledPartitions`

See [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/documents.py) for the document type
definitions.