mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
24 lines
482 B
Python
24 lines
482 B
Python
from __future__ import unicode_literals
|
|
|
|
from spacy.en import EN
|
|
|
|
|
|
def test_neq():
|
|
addr = EN.lexicon['Hello']
|
|
assert EN.lexicon['bye']['sic'] != addr['sic']
|
|
|
|
|
|
def test_eq():
|
|
addr = EN.lexicon['Hello']
|
|
assert EN.lexicon['Hello']['sic'] == addr['sic']
|
|
|
|
|
|
def test_case_neq():
|
|
addr = EN.lexicon['Hello']
|
|
assert EN.lexicon['hello']['sic'] != addr['sic']
|
|
|
|
|
|
def test_punct_neq():
|
|
addr = EN.lexicon['Hello']
|
|
assert EN.lexicon['Hello,']['sic'] != addr['sic']
|