Skip to content

Commit

Permalink
Update kytea_model.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
vbkaisetsu authored Sep 20, 2023
1 parent d6b2a07 commit 4899bb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vaporetto/src/kytea_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,8 @@ impl TryFrom<KyteaModel> for Model {
b'T' => CharacterType::Katakana as u8,
b'K' => CharacterType::Kanji as u8,
b'O' => CharacterType::Other as u8,
// Some models distributed on KyTea's web site contain the invalid character type `0x04`.
// The following supports them.
4 => {
continue 'a;
}
Expand Down

0 comments on commit 4899bb0

Please sign in to comment.