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

Commit

Permalink
Use is not None
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuma-t committed Sep 10, 2021
1 parent a19b72c commit 8c4a6ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sudachipy/plugin/path_rewrite/path_rewrite_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def concatenate_oov(self, path, begin, end, pos_id, lattice):
e = path[end - 1].get_end()

n = lattice.get_minimum_node(b, e)
if n:
if n is not None:
path[begin:end] = [n]
return n

Expand Down

0 comments on commit 8c4a6ef

Please sign in to comment.