gonglinyuan commited on
Commit
561d359
1 Parent(s): 6b1dada

Update tokenization_fairseq_t5.py

Browse files
Files changed (1) hide show
  1. tokenization_fairseq_t5.py +2 -4
tokenization_fairseq_t5.py CHANGED
@@ -47,10 +47,8 @@ class FairseqT5Tokenizer(PreTrainedTokenizer):
47
  )
48
  )
49
  self.fs_bpe = SentencepieceBPE(
50
- DictConfig(
51
- dict(
52
- sentencepiece_model=sp_path,
53
- )
54
  )
55
  )
56
  self.fs_dict = Dictionary.load(dict_path)
 
47
  )
48
  )
49
  self.fs_bpe = SentencepieceBPE(
50
+ dict(
51
+ sentencepiece_model=sp_path,
 
 
52
  )
53
  )
54
  self.fs_dict = Dictionary.load(dict_path)