mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 10:26:35 +03:00
10 lines
224 B
Python
10 lines
224 B
Python
from __future__ import unicode_literals
|
|
|
|
from spacy.en import EN
|
|
|
|
def test1():
|
|
words = ['JAPAN', 'GET', 'LUCKY']
|
|
tokens = EN.tokens_from_list(words)
|
|
assert len(tokens) == 3
|
|
assert tokens[0].string == 'JAPAN'
|