Download tools/mosesdecoder/moses2/FF/ExampleStatefulFF.h from Quagmire1/wiki-cased: direct link, hf CLI and curl.
- Browser
- Download file 1.48 kB
-
https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses2/FF/ExampleStatefulFF.h
- Command line
-
hf download hf://Quagmire1/wiki-cased/tools/mosesdecoder/moses2/FF/ExampleStatefulFF.h
-
curl -L -o ExampleStatefulFF.h https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses2/FF/ExampleStatefulFF.h
1.48 kB
| /* | |
| * ExampleStatefulFF.h | |
| * | |
| * Created on: 27 Oct 2015 | |
| * Author: hieu | |
| */ | |
| namespace Moses2 | |
| { | |
| class ExampleStatefulFF: public StatefulFeatureFunction | |
| { | |
| public: | |
| ExampleStatefulFF(size_t startInd, const std::string &line); | |
| virtual ~ExampleStatefulFF(); | |
| virtual FFState* BlankState(MemPool &pool, const System &sys) const; | |
| virtual void EmptyHypothesisState(FFState &state, const ManagerBase &mgr, | |
| const InputType &input, const Hypothesis &hypo) const; | |
| virtual void | |
| EvaluateInIsolation(MemPool &pool, const System &system, const Phrase<Moses2::Word> &source, | |
| const TargetPhraseImpl &targetPhrase, Scores &scores, | |
| SCORE &estimatedScore) const; | |
| virtual void | |
| EvaluateInIsolation(MemPool &pool, const System &system, const Phrase<SCFG::Word> &source, | |
| const TargetPhrase<SCFG::Word> &targetPhrase, Scores &scores, | |
| SCORE &estimatedScore) const; | |
| virtual void EvaluateWhenApplied(const ManagerBase &mgr, | |
| const Hypothesis &hypo, const FFState &prevState, Scores &scores, | |
| FFState &state) const; | |
| virtual void EvaluateWhenApplied(const SCFG::Manager &mgr, | |
| const SCFG::Hypothesis &hypo, int featureID, Scores &scores, | |
| FFState &state) const; | |
| }; | |
| } | |