Download mosesdecoder/moses2/server/TranslationRequest.h from suricodes/hindi-sindhi-docker: direct link, hf CLI and curl.
- Browser
- Download file 1.55 kB
-
https://huggingface.co/spaces/suricodes/hindi-sindhi-docker/resolve/main/mosesdecoder/moses2/server/TranslationRequest.h
- Command line
-
hf download hf://spaces/suricodes/hindi-sindhi-docker/mosesdecoder/moses2/server/TranslationRequest.h
-
curl -L -o TranslationRequest.h https://huggingface.co/spaces/suricodes/hindi-sindhi-docker/resolve/main/mosesdecoder/moses2/server/TranslationRequest.h
1.55 kB
| // -*- c++ -*- | |
| namespace Moses2 | |
| { | |
| class Hypothesis; | |
| class System; | |
| class Manager; | |
| class | |
| TranslationRequest : public virtual TranslationTask | |
| { | |
| protected: | |
| std::map<std::string, xmlrpc_c::value> m_retData; | |
| Translator* m_translator; | |
| boost::condition_variable& m_cond; | |
| boost::mutex& m_mutex; | |
| bool m_done; | |
| TranslationRequest(xmlrpc_c::paramList const& paramList, | |
| boost::condition_variable& cond, | |
| boost::mutex& mut, | |
| System &system, | |
| const std::string &line, | |
| long translationId); | |
| void | |
| pack_hypothesis(const Manager& manager, Hypothesis const* h, | |
| std::string const& key, | |
| std::map<std::string, xmlrpc_c::value> & dest) const; | |
| public: | |
| static | |
| boost::shared_ptr<TranslationRequest> | |
| create(Translator* translator, | |
| xmlrpc_c::paramList const& paramList, | |
| boost::condition_variable& cond, | |
| boost::mutex& mut, | |
| System &system, | |
| const std::string &line, | |
| long translationId); | |
| virtual bool | |
| DeleteAfterExecution() { | |
| return false; | |
| } | |
| bool | |
| IsDone() const { | |
| return m_done; | |
| } | |
| std::map<std::string, xmlrpc_c::value> const& | |
| GetRetData() { | |
| return m_retData; | |
| } | |
| void | |
| Run(); | |
| }; | |
| } | |