Download tools/mosesdecoder/moses/Syntax/F2S/HyperTreeCreator.h from Quagmire1/wiki-cased: direct link, hf CLI and curl.
- Browser
- Download file 779 Bytes
-
https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses/Syntax/F2S/HyperTreeCreator.h
- Command line
-
hf download hf://Quagmire1/wiki-cased/tools/mosesdecoder/moses/Syntax/F2S/HyperTreeCreator.h
-
curl -L -o HyperTreeCreator.h https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses/Syntax/F2S/HyperTreeCreator.h
779 Bytes
| namespace Moses | |
| { | |
| namespace Syntax | |
| { | |
| namespace F2S | |
| { | |
| // Base for classes that create a HyperTree (currently HyperTreeLoader and | |
| // GlueRuleSynthesizer). HyperTreeCreator is a friend of HyperTree. | |
| class HyperTreeCreator | |
| { | |
| protected: | |
| // Provide access to HyperTree's private SortAndPrune function. | |
| void SortAndPrune(HyperTree &trie, std::size_t limit) { | |
| trie.SortAndPrune(limit); | |
| } | |
| // Provide access to HyperTree's private GetOrCreateTargetPhraseCollection | |
| // function. | |
| TargetPhraseCollection::shared_ptr GetOrCreateTargetPhraseCollection( | |
| HyperTree &trie, const HyperPath &fragment) { | |
| return trie.GetOrCreateTargetPhraseCollection(fragment); | |
| } | |
| }; | |
| } // namespace F2S | |
| } // namespace Syntax | |
| } // namespace Moses | |