Skip to content

Commit

Permalink
Fixed wrong code
Browse files Browse the repository at this point in the history
  • Loading branch information
wannaphong committed Apr 26, 2022
1 parent 6efee29 commit 60fcd96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pythainlp/tag/lst20_ner_onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ def clean_output(self, list_text):
elif i == '▁':
i = " "
new_list.append((i, j))
return list_text
return new_list

def _config(self, list_ner):
_n = []
for i,j in list_ner:
_n.append((i,j.replace('E_', 'I_').replace('_', '-')))
for i, j in list_ner:
_n.append((i, j.replace('E_', 'I_').replace('_', '-')))
return _n

0 comments on commit 60fcd96

Please sign in to comment.