mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 02:36:32 +03:00
Fix and pass regression test for #736
This commit is contained in:
parent
4e48862fa8
commit
c5914c6fe5
|
@ -7,11 +7,8 @@ from __future__ import unicode_literals
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.xfail
|
|
||||||
@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):
|
||||||
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
|
||||||
assert tokens[0].lemma_ == number
|
|
||||||
assert tokens[0].pos_ == 'NUM'
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user