Closed pashalot closed 4 years ago
There is probably a bug in TrainFunctions.py. In loop that creates trigrams missed assignment to word variable (word = sentence[tokenIdx]). So this loop uses the last value from previous loop.
word
word = sentence[tokenIdx]
Can you point to the lines that you mean?
https://github.com/nreimers/truecaser/blob/8bc08c4718461dda5fab7b85f72c10b4f7bcf426/TrainFunctions.py#L78
Here word comes from previous loop
You are right. Thanks for pointing this out. Fixed it.
There is probably a bug in TrainFunctions.py. In loop that creates trigrams missed assignment to
word
variable (word = sentence[tokenIdx]
). So this loop uses the last value from previous loop.