Python - More updates to the new API

This commit is contained in:
Anthony MOI
2020-02-10 11:57:30 -05:00
parent 505c428f72
commit 8585b761d1
2 changed files with 6 additions and 6 deletions

View File

@ -76,7 +76,7 @@ elif args.type == "bert":
strip_accents=True,
lowercase=True,
)
# tok_r.pre_tokenizer = pre_tokenizers.Whitespace.new()
# tok_r.pre_tokenizer = pre_tokenizers.Whitespace()
tok_r.pre_tokenizer = pre_tokenizers.BertPreTokenizer()
tok_r.decoder = decoders.WordPiece()
tok_r.post_processor = BertProcessing(