mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 21:57:15 +03:00
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
|
||
|
|