ai-content-maker/.venv/Lib/site-packages/spacy/tests/lang/grc/test_text.py

24 lines
543 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import pytest
@pytest.mark.parametrize(
"text,match",
[
("ι", True),
("α", True),
("ϟα", True),
("ἑκατόν", True),
("ἐνακόσια", True),
("δισχίλια", True),
("μύρια", True),
("εἷς", True),
("λόγος", False),
(",", False),
("λβ", True),
],
)
def test_lex_attrs_like_number(grc_tokenizer, text, match):
tokens = grc_tokenizer(text)
assert len(tokens) == 1
assert tokens[0].like_num == match