adding tests to examples - updating summary module - coverage update
This commit is contained in:
@@ -113,8 +113,6 @@ class BertTokenizer(PreTrainedTokenizer):
|
||||
raise ValueError(
|
||||
"Can't find a vocabulary file at path '{}'. To load the vocabulary from a Google pretrained "
|
||||
"model use `tokenizer = BertTokenizer.from_pretrained(PRETRAINED_MODEL_NAME)`".format(vocab_file))
|
||||
if never_split is None:
|
||||
never_split = self.all_special_tokens
|
||||
self.vocab = load_vocab(vocab_file)
|
||||
self.ids_to_tokens = collections.OrderedDict(
|
||||
[(ids, tok) for tok, ids in self.vocab.items()])
|
||||
|
||||
Reference in New Issue
Block a user