spaCy/tests/tokens/test_token.py

11 lines
207 B
Python
Raw Normal View History

2015-02-04 22:16:14 +03:00
from __future__ import unicode_literals
import pytest
from spacy.parts_of_speech import ADV
2015-04-19 22:39:18 +03:00
2015-07-14 01:08:50 +03:00
def test_prob(EN):
tokens = EN(u'Give it back', parse=False)
2015-02-04 22:16:14 +03:00
give = tokens[0]
assert give.prob != 0