Download mosesdecoder/moses2/PhraseBased/Normal/Search.h from sleepyhead111/vllm_fairseq: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/sleepyhead111/vllm_fairseq/resolve/main/mosesdecoder/moses2/PhraseBased/Normal/Search.h
- Command line
-
hf download hf://sleepyhead111/vllm_fairseq/mosesdecoder/moses2/PhraseBased/Normal/Search.h
-
curl -L -o Search.h https://huggingface.co/sleepyhead111/vllm_fairseq/resolve/main/mosesdecoder/moses2/PhraseBased/Normal/Search.h
1.05 kB
| /* | |
| * SearchNormal.h | |
| * | |
| * Created on: 25 Oct 2015 | |
| * Author: hieu | |
| */ | |
| namespace Moses2 | |
| { | |
| class Hypothesis; | |
| class InputPath; | |
| class TargetPhrases; | |
| class TargetPhraseImpl; | |
| namespace NSNormal | |
| { | |
| class Stacks; | |
| class Search: public Moses2::Search | |
| { | |
| public: | |
| Search(Manager &mgr); | |
| virtual ~Search(); | |
| virtual void Decode(); | |
| const Hypothesis *GetBestHypo() const; | |
| void AddInitialTrellisPaths(TrellisPaths<TrellisPath> &paths) const; | |
| protected: | |
| Stacks m_stacks; | |
| void Decode(size_t stackInd); | |
| void Extend(const Hypothesis &hypo, const InputPath &path); | |
| void Extend(const Hypothesis &hypo, const TargetPhrases &tps, | |
| const InputPath &path, const Bitmap &newBitmap, SCORE estimatedScore); | |
| void Extend(const Hypothesis &hypo, const TargetPhraseImpl &tp, | |
| const InputPath &path, const Bitmap &newBitmap, SCORE estimatedScore); | |
| }; | |
| } | |
| } | |