mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-28 19:06:33 +03:00
10 lines
243 B
Python
10 lines
243 B
Python
|
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
|