Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 89288f8

Browse files
committed
CU-8696nbm03: Fix serialisation tests
1 parent 6756739 commit 89288f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/utils/saving/test_serialization.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ def test_round_trip(self):
138138
self.assertEqual(cat.vocab.index2word, self.undertest.vocab.index2word)
139139
self.assertEqual(cat.vocab.vec_index2word,
140140
self.undertest.vocab.vec_index2word)
141-
self.assertEqual(cat.vocab.unigram_table,
142-
self.undertest.vocab.unigram_table)
141+
self.assertTrue((cat.vocab.cum_probs == self.undertest.vocab.cum_probs).all())
143142
for name in SPECIALITY_NAMES:
144143
if name in ONE2MANY:
145144
# ignore cui2many and name2many

0 commit comments

Comments
 (0)