mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
11 lines
240 B
Python
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
|