From 1572a0dab9c547825208ba8a4075d0d3d83f0a41 Mon Sep 17 00:00:00 2001 From: Nitsud Yarg Date: Sun, 17 May 2026 22:01:17 -0700 Subject: [PATCH] add word type to parser --- fugashi_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fugashi_parser.py b/fugashi_parser.py index 15df21c..62addd5 100644 --- a/fugashi_parser.py +++ b/fugashi_parser.py @@ -224,7 +224,7 @@ def chunk_predicates(tokens): def is_vocab_token(pos, keep_pronouns=False, keep_numbers=False): pos1, pos2, pos3, pos4 = pos - if pos1 not in {"名詞", "動詞", "形容詞", "形状詞", "副詞", "代名詞"}: + if pos1 not in {"名詞", "動詞", "形容詞", "形状詞", "副詞", "代名詞", "感動詞"}: return False if pos1 == "代名詞" and not keep_pronouns: