spaCy/spacy/tests/lang/lb/test_exceptions.py
2019-10-18 11:27:38 +02:00

11 lines
240 B
Python

# coding: utf-8
from __future__ import unicode_literals
import pytest
@pytest.mark.parametrize("text", ["z.B.", "Jan."])
def test_lb_tokenizer_handles_abbr(lb_tokenizer, text):
tokens = lb_tokenizer(text)
assert len(tokens) == 1