mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-15 22:27:12 +03:00
12 lines
400 B
Python
12 lines
400 B
Python
|
import pytest
|
||
|
from spacy.lang.hi import Hindi
|
||
|
|
||
|
|
||
|
@pytest.mark.issue(3625)
|
||
|
def test_issue3625():
|
||
|
"""Test that default punctuation rules applies to hindi unicode characters"""
|
||
|
nlp = Hindi()
|
||
|
doc = nlp("hi. how हुए. होटल, होटल")
|
||
|
expected = ["hi", ".", "how", "हुए", ".", "होटल", ",", "होटल"]
|
||
|
assert [token.text for token in doc] == expected
|