Download tools/mosesdecoder/moses/Syntax/T2S/InputTreeBuilder.h from Quagmire1/wiki-cased: direct link, hf CLI and curl.
- Browser
- Download file 882 Bytes
-
https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses/Syntax/T2S/InputTreeBuilder.h
- Command line
-
hf download hf://Quagmire1/wiki-cased/tools/mosesdecoder/moses/Syntax/T2S/InputTreeBuilder.h
-
curl -L -o InputTreeBuilder.h https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses/Syntax/T2S/InputTreeBuilder.h
882 Bytes
| namespace Moses | |
| { | |
| namespace Syntax | |
| { | |
| namespace T2S | |
| { | |
| class InputTreeBuilder | |
| { | |
| public: | |
| InputTreeBuilder(std::vector<FactorType> const& oFactors); | |
| // Constructs a Moses::T2S::InputTree given a Moses::TreeInput and a label | |
| // for the top-level node (which covers <s> and </s>). | |
| void Build(const TreeInput &, const std::string &, InputTree &); | |
| private: | |
| static bool PostOrderComp(const std::pair<XMLParseOutput *, int> &, | |
| const std::pair<XMLParseOutput *, int> &); | |
| void CreateNodes(const TreeInput &, const std::string &, InputTree &); | |
| void ConnectNodes(InputTree &); | |
| void SortXmlNodesIntoPostOrder(std::vector<XMLParseOutput> &); | |
| const std::vector<FactorType> &m_outputFactorOrder; | |
| }; | |
| } // T2S | |
| } // Syntax | |
| } // Moses | |