mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 05:37:03 +03:00
428887b8f2
* new language: Luxembourgish (lb) * update * update * Update and rename .github/CONTRIBUTOR_AGREEMENT.md to .github/contributors/PeterGilles.md * Update and rename .github/contributors/PeterGilles.md to .github/CONTRIBUTOR_AGREEMENT.md * Update norm_exceptions.py * Delete README.md * moved test_lemma.py * deactivated 'lemma_lookup = LOOKUP' * update * Update conftest.py * update * tests updated * import unicode_literals * Update spacy/tests/lang/lb/test_text.py Co-Authored-By: Ines Montani <ines@ines.io> * Create PeterGilles.md
13 lines
283 B
Python
13 lines
283 B
Python
# coding: utf-8
|
|
# from __future__ import unicolb_literals
|
|
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
|
|
|