mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-16 14:47:16 +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
|