Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
Fix latttice node related access due to Cythonization #133
Browse files Browse the repository at this point in the history
  • Loading branch information
sorami committed Jun 19, 2020
1 parent 3c8df53 commit b63512b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sudachipy/morphemelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ def split(self, mode, index, wi):
nodes = []
for wid in word_ids:
n = latticenode.LatticeNode(self.lexicon, 0, 0, 0, wid)
n.begin = offset
n.set_begin(offset)
offset += n.get_word_info().head_word_length
n.end = offset
n.set_end(offset)
nodes.append(n)

return MorphemeList(self.input_text, self.grammar, self.lexicon, nodes)
Expand Down

0 comments on commit b63512b

Please sign in to comment.