mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
* Update doctests
This commit is contained in:
parent
90ad717dc4
commit
2b2032d1a0
|
@ -36,11 +36,11 @@ def test2():
|
||||||
o == u'‘Give it back,’ he pleaded ABJECTLY, ‘it’s mine.’'
|
o == u'‘Give it back,’ he pleaded ABJECTLY, ‘it’s mine.’'
|
||||||
|
|
||||||
nlp.vocab[u'back'].prob
|
nlp.vocab[u'back'].prob
|
||||||
-7.403977394104004
|
-7.033305644989014
|
||||||
nlp.vocab[u'not'].prob
|
nlp.vocab[u'not'].prob
|
||||||
-5.407193660736084
|
-5.332601070404053
|
||||||
nlp.vocab[u'quietly'].prob
|
nlp.vocab[u'quietly'].prob
|
||||||
-11.07155704498291
|
-11.994928359985352
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.models
|
@pytest.mark.models
|
||||||
|
@ -74,11 +74,13 @@ def test3():
|
||||||
u'consented', u'acquiesced', u'petitioned', u'quarreled',
|
u'consented', u'acquiesced', u'petitioned', u'quarreled',
|
||||||
u'appealed', u'pleading']
|
u'appealed', u'pleading']
|
||||||
o = [w.orth_ for w in words[50:60]]
|
o = [w.orth_ for w in words[50:60]]
|
||||||
assert o == [u'counselled', u'bragged', u'backtracked', u'caucused', u'refiled',
|
assert o == [u'endeavoured', u'martialed', u'counselled', u'bragged',
|
||||||
u'dueled', u'mused', u'dissented', u'yearned', u'confesses']
|
u'backtracked', u'caucused', u'refiled', u'dueled', u'mused',
|
||||||
|
u'dissented']
|
||||||
o = [w.orth_ for w in words[100:110]]
|
o = [w.orth_ for w in words[100:110]]
|
||||||
assert o == [u'cabled', u'ducked', u'sentenced', u'perjured', u'absconded',
|
assert o == [u'prosecuted', u'acquits', u'cabled', u'ducked', u'sentenced',
|
||||||
u'bargained', u'overstayed', u'clerked', u'confided', u'sympathizes']
|
u'gaoled', u'perjured', u'absconded', u'bargained', u'overstayed']
|
||||||
|
|
||||||
#o = [w.orth_ for w in words[1000:1010]]
|
#o = [w.orth_ for w in words[1000:1010]]
|
||||||
#assert o == [u'scorned', u'baled', u'righted', u'requested', u'swindled',
|
#assert o == [u'scorned', u'baled', u'righted', u'requested', u'swindled',
|
||||||
# u'posited', u'firebombed', u'slimed', u'deferred', u'sagged']
|
# u'posited', u'firebombed', u'slimed', u'deferred', u'sagged']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user