Download tools/mosesdecoder/moses/Syntax/T2S/RuleMatcherSCFG.h from Quagmire1/wiki-cased: direct link, hf CLI and curl.
- Browser
- Download file 775 Bytes
-
https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses/Syntax/T2S/RuleMatcherSCFG.h
- Command line
-
hf download hf://Quagmire1/wiki-cased/tools/mosesdecoder/moses/Syntax/T2S/RuleMatcherSCFG.h
-
curl -L -o RuleMatcherSCFG.h https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses/Syntax/T2S/RuleMatcherSCFG.h
775 Bytes
| namespace Moses | |
| { | |
| namespace Syntax | |
| { | |
| namespace T2S | |
| { | |
| // TODO | |
| // | |
| template<typename Callback> | |
| class RuleMatcherSCFG : public RuleMatcher<Callback> | |
| { | |
| public: | |
| RuleMatcherSCFG(const InputTree &, const RuleTrie &); | |
| ~RuleMatcherSCFG() {} | |
| void EnumerateHyperedges(const InputTree::Node &, Callback &); | |
| private: | |
| bool IsDescendent(const InputTree::Node &, const InputTree::Node &); | |
| void Match(const InputTree::Node &, const RuleTrie::Node &, int, Callback &); | |
| const InputTree &m_inputTree; | |
| const RuleTrie &m_ruleTrie; | |
| PHyperedge m_hyperedge; | |
| }; | |
| } // namespace T2S | |
| } // namespace Syntax | |
| } // namespace Moses | |
| // Implementation | |