Skip to content

Commit

Permalink
Merge pull request rsennrich#32 from ozancaglayan/master
Browse files Browse the repository at this point in the history
learn_joint_bpe_and_vocab: Fix parameter passing
  • Loading branch information
rsennrich authored Dec 18, 2017
2 parents 6fd0151 + 1290ace commit a248800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion learn_joint_bpe_and_vocab.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def create_parser():
learn_bpe.main(vocab_list, output, args.symbols, args.min_frequency, args.verbose, is_dict=True)

with codecs.open(args.output.name, encoding='UTF-8') as codes:
bpe = apply_bpe.BPE(codes, args.separator, None)
bpe = apply_bpe.BPE(codes, separator=args.separator)

# apply BPE to each training corpus and get vocabulary
for train_file, vocab_file in zip(args.input, args.vocab):
Expand Down

0 comments on commit a248800

Please sign in to comment.