patriziobellan commited on
Commit
2f33d7a
1 Parent(s): c5b3c61

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -0
README.md CHANGED
@@ -94,6 +94,27 @@ Below, an example of data instance.
94
 
95
  #### Relations Extraction
96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  ### Data Fields
98
  #### Token Classification
99
 
 
94
 
95
  #### Relations Extraction
96
 
97
+
98
+ For each instance, there is a document name representing the name of the document of the Friedrich *et al.* dataset, a list of tokens representing the words of the document instance, a list of interger representing the words position within each sentence of the document instance, a list of *ner tags* (in IOB2 format) representing the annotation of the token, a list of sentence id representing for each token the number of the sentence, and a list of relations of the document.
99
+
100
+ Below, an example of data instance.
101
+ ```
102
+ {
103
+ "document name": "doc-1.1",
104
+ "tokens": ["A", "small", "company",...],
105
+ "tokens-IDs": [0, 1, 2, ...],
106
+ "ner_tags": ["O", "O", "O", ...],
107
+ "sentence-IDs": [0, 0, 0, ...],
108
+ "relations": {
109
+ "source-head-sentence-ID": [1, 1, 1, ...],
110
+ "source-head-word-ID": [4, 4, 4, ...],
111
+ "relation-type": ["uses", "flow", "actor recipient", ...],
112
+ "target-head-sentence-ID": [1, 2, 1,...],
113
+ "target-head-word-ID": [5, 9, 1, ...]
114
+ }
115
+ }
116
+ ```
117
+
118
  ### Data Fields
119
  #### Token Classification
120