Datasets:

Languages:
Hindi
ArXiv:
License:
dipteshkanojia commited on
Commit
1e6a9b9
·
1 Parent(s): 74b1501
Files changed (1) hide show
  1. HiNER-collapsed.py +3 -2
HiNER-collapsed.py CHANGED
@@ -115,11 +115,12 @@ class HiNERCollapsedConfig(datasets.GeneratorBasedBuilder):
115
  ner_tags = []
116
  else:
117
  # conll2003 tokens are space separated
 
118
  splits = line.split("\t")
119
- tokens.append(splits[0].strip())
120
  # pos_tags.append(splits[1])
121
  # chunk_tags.append(splits[2])
122
- ner_tags.append(splits[1].strip())
123
  # last example
124
  yield guid, {
125
  "id": str(guid),
 
115
  ner_tags = []
116
  else:
117
  # conll2003 tokens are space separated
118
+ print(guid)
119
  splits = line.split("\t")
120
+ tokens.append(splits[0])
121
  # pos_tags.append(splits[1])
122
  # chunk_tags.append(splits[2])
123
+ ner_tags.append(splits[1])
124
  # last example
125
  yield guid, {
126
  "id": str(guid),