spaCy/spacy/tests/regression/test_issue2754.py
2019-02-08 14:14:49 +01:00

11 lines
286 B
Python

# coding: utf8
from __future__ import unicode_literals
def test_issue2754(en_tokenizer):
"""Test that words like 'a' and 'a.m.' don't get exceptional norm values."""
a = en_tokenizer("a")
assert a[0].norm_ == "a"
am = en_tokenizer("am")
assert am[0].norm_ == "am"