Download tools/mosesdecoder/moses/TranslationModel/ExamplePT.h from Quagmire1/wiki-cased: direct link, hf CLI and curl.
- Browser
- Download file 796 Bytes
-
https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses/TranslationModel/ExamplePT.h
- Command line
-
hf download hf://Quagmire1/wiki-cased/tools/mosesdecoder/moses/TranslationModel/ExamplePT.h
-
curl -L -o ExamplePT.h https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses/TranslationModel/ExamplePT.h
796 Bytes
| namespace Moses | |
| { | |
| class ChartParser; | |
| class ChartCellCollectionBase; | |
| class ChartRuleLookupManager; | |
| class ExamplePT : public PhraseDictionary | |
| { | |
| friend std::ostream& operator<<(std::ostream&, const ExamplePT&); | |
| public: | |
| ExamplePT(const std::string &line); | |
| void Load(AllOptions::ptr const& opts); | |
| void InitializeForInput(ttasksptr const& ttask); | |
| // for phrase-based model | |
| void GetTargetPhraseCollectionBatch(const InputPathList &inputPathQueue) const; | |
| // for syntax/hiero model (CKY+ decoding) | |
| ChartRuleLookupManager* CreateRuleLookupManager(const ChartParser&, const ChartCellCollectionBase&, std::size_t); | |
| TO_STRING(); | |
| protected: | |
| TargetPhrase *CreateTargetPhrase(const Phrase &sourcePhrase) const; | |
| }; | |
| } // namespace Moses | |