asahi417 commited on
Commit
39bcadd
1 Parent(s): 1d03dae

fix dataset

Browse files
Files changed (1) hide show
  1. process/tweet_ner.py +1 -1
process/tweet_ner.py CHANGED
@@ -39,7 +39,7 @@ def decode_ner_tags(tag_sequence: List, input_sequence: List):
39
  tmp_pos = []
40
  tmp_entity_type = None
41
  for n, (_l, _i) in enumerate(zip(tag_sequence, input_sequence)):
42
- _l = label2id[_l]
43
  if _l.startswith('B-'):
44
  _, _, _, out = update_collection(tmp_entity, tmp_entity_type, tmp_pos, out)
45
  tmp_entity_type = '-'.join(_l.split('-')[1:])
 
39
  tmp_pos = []
40
  tmp_entity_type = None
41
  for n, (_l, _i) in enumerate(zip(tag_sequence, input_sequence)):
42
+ _l = id2label[_l]
43
  if _l.startswith('B-'):
44
  _, _, _, out = update_collection(tmp_entity, tmp_entity_type, tmp_pos, out)
45
  tmp_entity_type = '-'.join(_l.split('-')[1:])