Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/sentencepiece.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Klein <guillaume.klein4@gmail.com>2020-10-03 17:09:23 +0300
committerGuillaume Klein <guillaume.klein4@gmail.com>2020-10-03 17:09:23 +0300
commit287acae32fbc758c7acd66c51b212b9d40cb320a (patch)
tree67474faef3756dbb821a0a5dfb2914fcd08f14a1
parent4e32230a06164a1349a091f0951c710b06d59254 (diff)
Fix type of generate_vocabulary option
-rw-r--r--src/spm_encode_main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spm_encode_main.cc b/src/spm_encode_main.cc
index 4a51cb8..a04ca18 100644
--- a/src/spm_encode_main.cc
+++ b/src/spm_encode_main.cc
@@ -45,7 +45,7 @@ ABSL_FLAG(std::string, vocabulary, "",
"tokens in \"vocabulary\" file");
ABSL_FLAG(int32, vocabulary_threshold, 0,
"Words with frequency < threshold will be treated as OOV");
-ABSL_FLAG(int32, generate_vocabulary, false,
+ABSL_FLAG(bool, generate_vocabulary, false,
"Generates vocabulary file instead of segmentation");
int main(int argc, char *argv[]) {