Skip to content
Snippets Groups Projects
Unverified Commit 76406501 authored by aaa123git's avatar aaa123git Committed by GitHub
Browse files

fix bug. tag_seq is cut, but word_seq is not cut (#200)

parent 3812629e
Branches
No related tags found
No related merge requests found
...@@ -33,6 +33,7 @@ def calculateF1(predict_golden): ...@@ -33,6 +33,7 @@ def calculateF1(predict_golden):
def tag2triples(word_seq, tag_seq): def tag2triples(word_seq, tag_seq):
word_seq = word_seq[:len(tag_seq)]
assert len(word_seq)==len(tag_seq) assert len(word_seq)==len(tag_seq)
triples = [] triples = []
i = 0 i = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment