ai-content-maker/.venv/Lib/site-packages/spacy/tests/lang/tl/test_indices.py

9 lines
257 B
Python
Raw Permalink Normal View History

2024-05-03 04:18:51 +03:00
def test_tl_simple_punct(tl_tokenizer):
text = "Sige, punta ka dito"
tokens = tl_tokenizer(text)
assert tokens[0].idx == 0
assert tokens[1].idx == 4
assert tokens[2].idx == 6
assert tokens[3].idx == 12
assert tokens[4].idx == 15