Python - Update doc and readme for add_prefix_space

This commit is contained in:
Anthony MOI
2019-12-26 10:34:53 -05:00
parent 1879cb0bcb
commit a7734ffc9f
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ if args.type == "gpt2":
# Create a Tokenizer using BPE
tok_r = Tokenizer(models.BPE.from_files(args.vocab, args.merges))
# Use ByteLevel PreTokenizer
tok_r.with_pre_tokenizer(pre_tokenizers.ByteLevel.new(False))
tok_r.with_pre_tokenizer(pre_tokenizers.ByteLevel.new(add_prefix_space=False))
# Use ByteLevel Decoder
tok_r.with_decoder(decoders.ByteLevel.new())
elif args.type == "bert":