mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-15 22:27:12 +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
|