spaCy/spacy/tests/lang/ja/test_morphologizer_factory.py

11 lines
244 B
Python
Raw Normal View History

import pytest
2023-06-26 12:41:03 +03:00
from spacy.lang.ja import Japanese
def test_ja_morphologizer_factory():
pytest.importorskip("sudachipy")
nlp = Japanese()
morphologizer = nlp.add_pipe("morphologizer")
assert morphologizer.cfg["extend"] is True