Download tools/mosesdecoder/moses2/SCFG/InputPath.h from Quagmire1/wiki-cased: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses2/SCFG/InputPath.h
- Command line
-
hf download hf://Quagmire1/wiki-cased/tools/mosesdecoder/moses2/SCFG/InputPath.h
-
curl -L -o InputPath.h https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses2/SCFG/InputPath.h
1.34 kB
| /* | |
| * InputPath.h | |
| * | |
| * Created on: 23 Oct 2015 | |
| * Author: hieu | |
| */ | |
| namespace Moses2 | |
| { | |
| namespace SCFG | |
| { | |
| class TargetPhrases; | |
| class TargetPhraseImpl; | |
| //////////////////////////////////////////////////////////////////////////// | |
| class InputPath: public InputPathBase | |
| { | |
| public: | |
| typedef std::pair<SymbolBind, const SCFG::TargetPhrases*> Element; | |
| typedef std::list<Element, MemPoolAllocator<Element> > Coll; | |
| Coll targetPhrases; | |
| SubPhrase<SCFG::Word> subPhrase; | |
| InputPath(MemPool &pool, const SubPhrase<SCFG::Word> &subPhrase, const Range &range, | |
| size_t numPt, const InputPath *prefixPath); | |
| virtual ~InputPath(); | |
| const ActiveChart &GetActiveChart(size_t ptInd) const { | |
| return m_activeChart[ptInd]; | |
| } | |
| void AddActiveChartEntry(size_t ptInd, ActiveChartEntry *chartEntry); | |
| void AddTargetPhrasesToPath( | |
| MemPool &pool, | |
| const System &system, | |
| const PhraseTable &pt, | |
| const SCFG::TargetPhrases &tps, | |
| const SCFG::SymbolBind &symbolBind); | |
| size_t GetNumRules() const; | |
| std::string Debug(const System &system) const; | |
| protected: | |
| ActiveChart *m_activeChart; | |
| }; | |
| } | |
| } | |