We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I did it as link https://opennmt.net/CTranslate2/quickstart.html
c++ code as below:
`int main() { //system("chcp 850");
const std::string model_path("D:\\code\\CTranslate2\\models\\opus-mt-en-de\\"); const ctranslate2::models::ModelLoader model_loader(model_path); ctranslate2::Translator translator(model_loader); const std::vector<std::vector<std::string>> batch = { {"▁Hello", "▁World", "!", "</s>"} }; const auto translation = translator.translate_batch(batch); for (const auto& token : translation[0].output()) std::cout << token << ' '; std::cout << std::endl; return 0;
}`
but the output is:
鈻? 鈻丯ein , 鈻乶ein .
instead of '▁Hall o ▁Welt !' that in document.
my model is generated from following command:
huggingface-cli download --resume-download --local-dir-use-symlinks False Helsinki-NLP/opus-mt-en-de cd D:\code\CTranslate2\models ct2-transformers-converter --model Helsinki-NLP/opus-mt-en-de --quantization int8 --output_dir opus-mt-en-de
I need help. sorry for my poor English.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I did it as link https://opennmt.net/CTranslate2/quickstart.html
c++ code as below:
`int main()
{
//system("chcp 850");
}`
but the output is:
鈻? 鈻丯ein , 鈻乶ein .
instead of '▁Hall o ▁Welt !' that in document.
my model is generated from following command:
huggingface-cli download --resume-download --local-dir-use-symlinks False Helsinki-NLP/opus-mt-en-de
cd D:\code\CTranslate2\models
ct2-transformers-converter --model Helsinki-NLP/opus-mt-en-de --quantization int8 --output_dir opus-mt-en-de
I need help.
sorry for my poor English.
The text was updated successfully, but these errors were encountered: