You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
346 B
14 lines
346 B
4 years ago
|
#!/usr/bin/env python3
|
||
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
# All rights reserved.
|
||
|
#
|
||
|
# This source code is licensed under the license found in the
|
||
|
# https://github.com/pytorch/fairseq/blob/master/LICENSE
|
||
|
import sys
|
||
|
|
||
|
import sentencepiece as spm
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
spm.SentencePieceTrainer.Train(" ".join(sys.argv[1:]))
|