mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-14 18:22:27 +03:00
Fix test
This commit is contained in:
parent
aac8e1ba99
commit
97dda41d5d
|
@ -33,7 +33,7 @@ def test_vocab_lexeme_prob(word1, word2, prob1, prob2):
|
||||||
assert "lexeme_prob" not in vocab.lookups.tables
|
assert "lexeme_prob" not in vocab.lookups.tables
|
||||||
# table is added when a prob is set
|
# table is added when a prob is set
|
||||||
vocab[word1].prob = -1
|
vocab[word1].prob = -1
|
||||||
assert "lexeme_prob" not in vocab.lookups.tables
|
assert "lexeme_prob" in vocab.lookups.tables
|
||||||
assert word2 not in vocab.lookups.get_table("lexeme_prob")
|
assert word2 not in vocab.lookups.get_table("lexeme_prob")
|
||||||
vocab[word2].prob = prob2
|
vocab[word2].prob = prob2
|
||||||
assert vocab[word1].prob > vocab[word2].prob
|
assert vocab[word1].prob > vocab[word2].prob
|
||||||
|
|
Loading…
Reference in New Issue
Block a user