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

Commit bc9a659

Browse files
authored
Merge pull request #104 from WorksApplications/fix-reading-form
Fix a reading form error
2 parents 0032667 + 592433d commit bc9a659

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sudachipy/dictionarylib/wordinfolist.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ def get_word_info(self, word_id):
3535
normalized_form = surface
3636
dictionary_form_word_id = int.from_bytes(self.bytes.read(4), 'little', signed=True)
3737
reading_form = self.buffer_to_string()
38+
if not reading_form:
39+
reading_form = surface
3840
a_unit_split = self.buffer_to_int_array()
3941
b_unit_split = self.buffer_to_int_array()
4042
word_structure = self.buffer_to_int_array()

0 commit comments

Comments
 (0)