mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-03 21:24:11 +03:00
Use a pipe for separating Japanese inflections
Inflection values look like this pipe separated: 五段-ラ行|連用形-促音便 So using a hyphen erases the original fields.
This commit is contained in:
parent
f975690cc9
commit
227f98081b
|
@ -94,7 +94,7 @@ class JapaneseTokenizer(DummyTokenizer):
|
||||||
DetailedToken(
|
DetailedToken(
|
||||||
token.surface(), # orth
|
token.surface(), # orth
|
||||||
"-".join([xx for xx in token.part_of_speech()[:4] if xx != "*"]), # tag
|
"-".join([xx for xx in token.part_of_speech()[:4] if xx != "*"]), # tag
|
||||||
"-".join([xx for xx in token.part_of_speech()[4:] if xx != "*"]), # inf
|
"|".join([xx for xx in token.part_of_speech()[4:] if xx != "*"]), # inf
|
||||||
token.dictionary_form(), # lemma
|
token.dictionary_form(), # lemma
|
||||||
token.normalized_form(),
|
token.normalized_form(),
|
||||||
token.reading_form(),
|
token.reading_form(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user