diff --git a/spacy/syntax/_parse_features.pyx b/spacy/syntax/_parse_features.pyx index 2222e694d..d54998347 100644 --- a/spacy/syntax/_parse_features.pyx +++ b/spacy/syntax/_parse_features.pyx @@ -84,6 +84,7 @@ cdef int fill_context(atom_t* context, State* state) except -1: if state.stack_len >= 3: context[S2_has_head] = has_head(get_s2(state)) + unigrams = ( (S2W, S2p), (S2c6, S2p), diff --git a/tests/test_token.py b/tests/test_token.py new file mode 100644 index 000000000..11d9d41f8 --- /dev/null +++ b/tests/test_token.py @@ -0,0 +1,15 @@ +from __future__ import unicode_literals +import pytest + +from spacy.en import English +from spacy.parts_of_speech import ADV + +@pytest.fixture +def nlp(): + return English() + + +def test_prob(nlp): + tokens = nlp(u'Give it back') + give = tokens[0] + assert give.prob != 0