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

11 lines
244 B
Python
Raw Normal View History

import pytest
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