mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 10:46:29 +03:00
Fix formatting
This commit is contained in:
parent
5f0d196a31
commit
6935d55409
|
@ -1,7 +1,4 @@
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
"""Test that times like "7am" are tokenized correctly and that numbers are converted to string."""
|
|
||||||
|
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -9,6 +6,7 @@ import pytest
|
||||||
|
|
||||||
@pytest.mark.parametrize('text,number', [("7am", "7"), ("11p.m.", "11")])
|
@pytest.mark.parametrize('text,number', [("7am", "7"), ("11p.m.", "11")])
|
||||||
def test_issue736(en_tokenizer, text, number):
|
def test_issue736(en_tokenizer, text, number):
|
||||||
|
"""Test that times like "7am" are tokenized correctly and that numbers are converted to string."""
|
||||||
tokens = en_tokenizer(text)
|
tokens = en_tokenizer(text)
|
||||||
assert len(tokens) == 2
|
assert len(tokens) == 2
|
||||||
assert tokens[0].text == number
|
assert tokens[0].text == number
|
||||||
|
|
Loading…
Reference in New Issue
Block a user