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

fix dataset

Browse files
Files changed (1) hide show
  1. process/tweet_ner.py +1 -1
process/tweet_ner.py CHANGED
@@ -72,8 +72,8 @@ def process(tmp):
72
  for i in tmp:
73
  i.pop("id")
74
  entities = decode_ner_tags(i['tags'].tolist(), i['tokens'].tolist())
75
- [e['types'] for e in entities]
76
  pprint(entities)
 
77
  input()
78
  i['gold_label_sequence'] = i.pop('tags').tolist()
79
  i['text_tokenized'] = i.pop('tokens').tolist()
 
72
  for i in tmp:
73
  i.pop("id")
74
  entities = decode_ner_tags(i['tags'].tolist(), i['tokens'].tolist())
 
75
  pprint(entities)
76
+ [e['types'] for e in entities]
77
  input()
78
  i['gold_label_sequence'] = i.pop('tags').tolist()
79
  i['text_tokenized'] = i.pop('tokens').tolist()