Download mosesdecoder/moses2/PhraseBased/Sentence.h from sleepyhead111/vllm_fairseq: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/sleepyhead111/vllm_fairseq/resolve/main/mosesdecoder/moses2/PhraseBased/Sentence.h
- Command line
-
hf download hf://sleepyhead111/vllm_fairseq/mosesdecoder/moses2/PhraseBased/Sentence.h
-
curl -L -o Sentence.h https://huggingface.co/sleepyhead111/vllm_fairseq/resolve/main/mosesdecoder/moses2/PhraseBased/Sentence.h
1.09 kB
| /* | |
| * Sentence.h | |
| * | |
| * Created on: 14 Dec 2015 | |
| * Author: hieu | |
| */ | |
| namespace Moses2 | |
| { | |
| class FactorCollection; | |
| class System; | |
| class Sentence: public InputType, public PhraseImpl | |
| { | |
| public: | |
| static Sentence *CreateFromString(MemPool &pool, FactorCollection &vocab, | |
| const System &system, const std::string &str); | |
| Sentence(MemPool &pool, size_t size) | |
| :InputType(pool) | |
| ,PhraseImpl(pool, size) | |
| {} | |
| virtual ~Sentence() | |
| {} | |
| protected: | |
| static Sentence *CreateFromStringXML(MemPool &pool, FactorCollection &vocab, | |
| const System &system, const std::string &str); | |
| static void XMLParse( | |
| MemPool &pool, | |
| const System &system, | |
| size_t depth, | |
| const pugi::xml_node &parentNode, | |
| std::vector<std::string> &toks, | |
| std::vector<XMLOption*> &xmlOptions); | |
| }; | |
| } /* namespace Moses2 */ | |