Download tools/mosesdecoder/moses/Syntax/InputWeightFF.h from Quagmire1/wiki-cased: direct link, hf CLI and curl.
- Browser
- Download file 1.46 kB
-
https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses/Syntax/InputWeightFF.h
- Command line
-
hf download hf://Quagmire1/wiki-cased/tools/mosesdecoder/moses/Syntax/InputWeightFF.h
-
curl -L -o InputWeightFF.h https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses/Syntax/InputWeightFF.h
1.46 kB
| namespace Moses | |
| { | |
| namespace Syntax | |
| { | |
| class InputWeightFF : public StatelessFeatureFunction | |
| { | |
| public: | |
| InputWeightFF(const std::string &line); | |
| bool IsUseable(const FactorMask &mask) const { | |
| return true; | |
| } | |
| void EvaluateWhenApplied(const Hypothesis& hypo, | |
| ScoreComponentCollection* accumulator) const; | |
| void EvaluateWhenApplied(const ChartHypothesis &hypo, | |
| ScoreComponentCollection* accumulator) const; | |
| void EvaluateWhenApplied(const Syntax::SHyperedge &hyperedge, | |
| ScoreComponentCollection* accumulator) const; | |
| void SetParameter(const std::string& key, const std::string& value); | |
| // Virtual functions from StatelessFeatureFunction that are no-ops for | |
| // InputWeightFF. | |
| void EvaluateInIsolation(const Phrase &, const TargetPhrase &, | |
| ScoreComponentCollection &, | |
| ScoreComponentCollection &) const {} | |
| void EvaluateWithSourceContext(const InputType &, const InputPath &, | |
| const TargetPhrase &, const StackVec *, | |
| ScoreComponentCollection &, | |
| ScoreComponentCollection *) const {} | |
| void EvaluateTranslationOptionListWithSourceContext( | |
| const InputType &, const TranslationOptionList &) const {} | |
| }; | |
| } // Syntax | |
| } // Moses | |