mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
* Update doctests
This commit is contained in:
parent
2b2032d1a0
commit
3a4c2a3276
|
@ -15,11 +15,11 @@ def test_1():
|
|||
assert u"‘Give it BACK,’ he pleaded ABJECTLY, ‘it’s mine.’"
|
||||
|
||||
o = nlp.vocab[u'back'].prob
|
||||
assert o == -7.403977394104004
|
||||
assert o == -7.033305644989014
|
||||
o = nlp.vocab[u'not'].prob
|
||||
assert o == -5.407193660736084
|
||||
assert o == -5.332601070404053
|
||||
o = nlp.vocab[u'quietly'].prob
|
||||
assert o == -11.07155704498291
|
||||
assert o == -11.994928359985352
|
||||
|
||||
|
||||
@pytest.mark.models
|
||||
|
@ -35,14 +35,6 @@ def test2():
|
|||
o = u''.join(tok.string.upper() if is_adverb(tok) else tok.string for tok in tokens)
|
||||
o == u'‘Give it back,’ he pleaded ABJECTLY, ‘it’s mine.’'
|
||||
|
||||
nlp.vocab[u'back'].prob
|
||||
-7.033305644989014
|
||||
nlp.vocab[u'not'].prob
|
||||
-5.332601070404053
|
||||
nlp.vocab[u'quietly'].prob
|
||||
-11.994928359985352
|
||||
|
||||
|
||||
@pytest.mark.models
|
||||
def test3():
|
||||
import spacy.en
|
||||
|
|
Loading…
Reference in New Issue
Block a user