Download mosesdecoder/moses/TranslationModel/fuzzy-match/SentenceAlignment.cpp from sleepyhead111/vllm_fairseq: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/sleepyhead111/vllm_fairseq/resolve/main/mosesdecoder/moses/TranslationModel/fuzzy-match/SentenceAlignment.cpp
- Command line
-
hf download hf://sleepyhead111/vllm_fairseq/mosesdecoder/moses/TranslationModel/fuzzy-match/SentenceAlignment.cpp
-
curl -L -o SentenceAlignment.cpp https://huggingface.co/sleepyhead111/vllm_fairseq/resolve/main/mosesdecoder/moses/TranslationModel/fuzzy-match/SentenceAlignment.cpp
509 Bytes
| // | |
| // SentenceAlignment.cpp | |
| // moses | |
| // | |
| // Created by Hieu Hoang on 26/07/2012. | |
| // Copyright 2012 __MyCompanyName__. All rights reserved. | |
| // | |
| namespace tmmt | |
| { | |
| std::string SentenceAlignment::getTargetString(const Vocabulary &vocab) const | |
| { | |
| util::StringStream strme; | |
| for (size_t i = 0; i < target.size(); ++i) { | |
| const WORD &word = vocab.GetWord(target[i]); | |
| strme << word << " "; | |
| } | |
| return strme.str(); | |
| } | |
| } | |