MCPcopy Create free account
hub / github.com/huggingface/transformers / setUp

Method setUp

tests/test_tokenization_xlnet.py:33–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 tokenizer_class = XLNetTokenizer
32
33 def setUp(self):
34 super().setUp()
35
36 # We have a SentencePiece fixture for testing
37 tokenizer = XLNetTokenizer(SAMPLE_VOCAB, keep_accents=True)
38 tokenizer.save_pretrained(self.tmpdirname)
39
40 def test_full_tokenizer(self):
41 tokenizer = XLNetTokenizer(SAMPLE_VOCAB, keep_accents=True)

Callers

nothing calls this directly

Calls 2

XLNetTokenizerClass · 0.90
save_pretrainedMethod · 0.45

Tested by

no test coverage detected