mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-24 11:54:30 +03:00
Also update test accordingly
This commit is contained in:
parent
7251014380
commit
c710abe6d7
|
@ -49,5 +49,5 @@ def test_tokenizer_handles_emoji(tokenizer, text, length):
|
|||
|
||||
def test_tokenizer_degree(tokenizer):
|
||||
for u in "cfkCFK":
|
||||
assert [t.text for t in tokenizer(f"°{u}.")] == [f"°{u}", "."]
|
||||
assert [t[1] for t in tokenizer.explain(f"°{u}.")] == [f"°{u}", "."]
|
||||
assert [t.text for t in tokenizer(f"°{u}.")] == ["°", f"{u}", "."]
|
||||
assert [t[1] for t in tokenizer.explain(f"°{u}.")] == ["°", f"{u}", "."]
|
||||
|
|
Loading…
Reference in New Issue
Block a user