Skip to content

Commit

Permalink
detect not AUX as 助動詞
Browse files Browse the repository at this point in the history
  • Loading branch information
sadahry committed Nov 19, 2022
1 parent cc7da54 commit 30c1e0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion katsuyo_text/spacy_katsuyo_text_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def try_detect(
norm = candidate.norm_
lemma = candidate.lemma_

if pos_tag == "AUX":
if pos_tag == "AUX" or tag == "助動詞":
# ==================================================
# 助動詞の判定
# ==================================================
Expand Down
6 changes: 6 additions & 0 deletions tests/test_spacy_katsuyo_text_detector_appendant.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ def katsuyo_texts_appendants_detector_init_warning():
"AUX",
[Ukemi],
),
(
"あいつに嫌われよ",
"れる",
"VERB", # ja_ginzaではAUXとならない
[Ukemi],
),
(
"あなたを愛させる",
"せる",
Expand Down

0 comments on commit 30c1e0c

Please # to comment.