spaCy/tests/tokens/test_token.py

12 lines
227 B
Python
Raw Normal View History

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