Download tools/mosesdecoder/moses/ChartParserCallback.h from Quagmire1/wiki-cased: direct link, hf CLI and curl.
- Browser
- Download file 763 Bytes
-
https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses/ChartParserCallback.h
- Command line
-
hf download hf://Quagmire1/wiki-cased/tools/mosesdecoder/moses/ChartParserCallback.h
-
curl -L -o ChartParserCallback.h https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses/ChartParserCallback.h
763 Bytes
| namespace Moses | |
| { | |
| class TargetPhraseCollection; | |
| class Range; | |
| class TargetPhrase; | |
| class InputPath; | |
| class InputType; | |
| class ChartCellLabel; | |
| class ChartParserCallback | |
| { | |
| public: | |
| virtual ~ChartParserCallback() {} | |
| virtual void Add(const TargetPhraseCollection &, const StackVec &, const Range &) = 0; | |
| virtual bool Empty() const = 0; | |
| virtual void AddPhraseOOV(TargetPhrase &phrase, std::list<TargetPhraseCollection::shared_ptr > &waste_memory, const Range &range) = 0; | |
| virtual void EvaluateWithSourceContext(const InputType &input, const InputPath &inputPath) = 0; | |
| virtual float GetBestScore(const ChartCellLabel *chartCell) const = 0; | |
| }; | |
| } // namespace Moses | |