Download tools/mosesdecoder/moses2/SCFG/Stack.h from Quagmire1/wiki-cased: direct link, hf CLI and curl.
- Browser
- Download file 851 Bytes
-
https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses2/SCFG/Stack.h
- Command line
-
hf download hf://Quagmire1/wiki-cased/tools/mosesdecoder/moses2/SCFG/Stack.h
-
curl -L -o Stack.h https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses2/SCFG/Stack.h
851 Bytes
| namespace Moses2 | |
| { | |
| class HypothesisBase; | |
| class ArcLists; | |
| namespace SCFG | |
| { | |
| class Hypothesis; | |
| class Manager; | |
| class Stack | |
| { | |
| public: | |
| typedef boost::unordered_map<SCFG::Word, Moses2::HypothesisColl*> Coll; | |
| Stack(const Manager &mgr); | |
| virtual ~Stack(); | |
| const Coll &GetColl() const { | |
| return m_coll; | |
| } | |
| const Moses2::HypothesisColl *GetColl(const SCFG::Word &nt) const; | |
| size_t GetSize() const; | |
| void Add(SCFG::Hypothesis *hypo, Recycler<HypothesisBase*> &hypoRecycle, | |
| ArcLists &arcLists); | |
| const Hypothesis *GetBestHypo() const; | |
| std::string Debug(const System &system) const; | |
| protected: | |
| const Manager &m_mgr; | |
| Coll m_coll; | |
| Moses2::HypothesisColl &GetColl(const SCFG::Word &nt); | |
| }; | |
| } | |
| } | |