mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 13:47:13 +03:00
12 lines
285 B
Python
12 lines
285 B
Python
|
from spacy import util
|
||
|
|
||
|
|
||
|
def test_load_en():
|
||
|
rules = util.read_tokenization('en')
|
||
|
assert len(rules) != 0
|
||
|
aint = [rule for rule in rules if rule[0] == "ain't"][0]
|
||
|
chunk, lex, pieces = aint
|
||
|
assert chunk == "ain't"
|
||
|
assert lex == "are"
|
||
|
assert pieces == ["not"]
|