elshehawy commited on
Commit
c8acd87
β€’
1 Parent(s): df16c53

replace find_orgs function with find_orgs_in_data in evaluate_data.py

Browse files
Files changed (1) hide show
  1. evaluate_data.py +1 -1
evaluate_data.py CHANGED
@@ -115,7 +115,7 @@ def store_sample_data(data):
115
  for sent in data:
116
  labels = [ner_feature.feature.int2str(l) for l in sent['ner_tags']]
117
  # print(labels)
118
- sent_orgs = find_orgs(sent['tokens'], labels)
119
 
120
  sent_text = tokenizer.convert_tokens_to_string(sent['tokens'])
121
  test_data.append({
 
115
  for sent in data:
116
  labels = [ner_feature.feature.int2str(l) for l in sent['ner_tags']]
117
  # print(labels)
118
+ sent_orgs = find_orgs_in_data(sent['tokens'], labels)
119
 
120
  sent_text = tokenizer.convert_tokens_to_string(sent['tokens'])
121
  test_data.append({