Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
10K<n<100K
Language Creators:
found
Annotations Creators:
other
Source Datasets:
extended|other
ArXiv:
Tags:
relation extraction
License:
dfki-nlp commited on
Commit
096a72c
1 Parent(s): 9bb353a

Update kbp37.py

Browse files
Files changed (1) hide show
  1. kbp37.py +0 -9
kbp37.py CHANGED
@@ -208,15 +208,6 @@ class KBP37(datasets.GeneratorBasedBuilder):
208
  tokens.pop(e2_start)
209
  e2_end = tokens.index("</e2>")
210
  tokens.pop(e2_end)
211
- else:
212
- print('Should not happen: ' + example)
213
- tokens.pop(e2_start)
214
- e2_end = tokens.index("</e2>")
215
- tokens.pop(e2_end)
216
- e1_start = tokens.index("<e1>")
217
- tokens.pop(e1_start)
218
- e1_end = tokens.index("</e1>")
219
- tokens.pop(e1_end)
220
 
221
  # some examples, like train/1276 are invalid (empty head/tail), and
222
  # yield non-sensical examples without this check
 
208
  tokens.pop(e2_start)
209
  e2_end = tokens.index("</e2>")
210
  tokens.pop(e2_end)
 
 
 
 
 
 
 
 
 
211
 
212
  # some examples, like train/1276 are invalid (empty head/tail), and
213
  # yield non-sensical examples without this check