spaCy/tests/tokens/test_token.py
2015-07-14 00:08:50 +02:00

11 lines
207 B
Python

from __future__ import unicode_literals
import pytest
from spacy.parts_of_speech import ADV
def test_prob(EN):
tokens = EN(u'Give it back', parse=False)
give = tokens[0]
assert give.prob != 0