Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Fix test that depends on that serialization dir
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkgr committed Dec 9, 2021
1 parent 7c1b6e5 commit acdb3a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/data/vocabulary_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ def test_from_files_with_tar_archive(self):
def test_from_files_with_model_archive(self):
vocab = Vocabulary.from_files(str(self.model_archive))
vocab.get_namespaces() == {"tokens", "labels"}
assert vocab.get_token_from_index(3, namespace="tokens") == "u.n."
assert vocab.get_token_from_index(3, namespace="tokens") == "animals"


class TestVocabularyFromPretrainedTransformer(AllenNlpTestCase):
Expand Down

0 comments on commit acdb3a9

Please sign in to comment.