fprintf(stderr, " -ps, --print-special [%-7s] print special tokens\n", params.print_special ? "true" : "false");
fprintf(stderr, " -pc, --print-colors [%-7s] print colors\n", params.print_colors ? "true" : "false");
fprintf(stderr, " -pp, --print-progress [%-7s] print progress\n", params.print_progress ? "true" : "false");
- fprintf(stderr, " -nt, --no-timestamps [%-7s] do not print timestamps\n", params.no_timestamps ? "false" : "true");
+ fprintf(stderr, " -nt, --no-timestamps [%-7s] do not print timestamps\n", params.no_timestamps ? "true" : "false");
fprintf(stderr, " -l LANG, --language LANG [%-7s] spoken language ('auto' for auto-detect)\n", params.language.c_str());
fprintf(stderr, " -dl, --detect-language [%-7s] exit after automatically detecting language\n", params.detect_language ? "true" : "false");
fprintf(stderr, " --prompt PROMPT [%-7s] initial prompt\n", params.prompt.c_str());
path_bin = path_bin.substr(0, pos);
}
+ // match "-qx_x"
+ pos = path_bin.rfind('-');
+ if (pos != std::string::npos) {
+ auto sub = path_bin.substr(pos);
+ if (sub.size() == 5 && sub[1] == 'q' && sub[3] == '_') {
+ path_bin = path_bin.substr(0, pos);
+ }
+ }
+
path_bin += "-encoder.mlmodelc";
return path_bin;