Download mosesdecoder/moses2/defer/CubePruningBitmapStack/Search.h from sleepyhead111/vllm_fairseq: direct link, hf CLI and curl.
- Browser
- Download file 884 Bytes
-
https://huggingface.co/sleepyhead111/vllm_fairseq/resolve/main/mosesdecoder/moses2/defer/CubePruningBitmapStack/Search.h
- Command line
-
hf download hf://sleepyhead111/vllm_fairseq/mosesdecoder/moses2/defer/CubePruningBitmapStack/Search.h
-
curl -L -o Search.h https://huggingface.co/sleepyhead111/vllm_fairseq/resolve/main/mosesdecoder/moses2/defer/CubePruningBitmapStack/Search.h
884 Bytes
| /* | |
| * Search.h | |
| * | |
| * Created on: 16 Nov 2015 | |
| * Author: hieu | |
| */ | |
| namespace Moses2 | |
| { | |
| class Bitmap; | |
| class Hypothesis; | |
| class InputPath; | |
| class TargetPhrases; | |
| namespace NSCubePruningBitmapStack | |
| { | |
| class Search : public Moses2::Search | |
| { | |
| public: | |
| Search(Manager &mgr); | |
| virtual ~Search(); | |
| virtual void Decode(); | |
| const Hypothesis *GetBestHypo() const; | |
| protected: | |
| Stack m_stack; | |
| CubeEdge::Queue m_queue; | |
| CubeEdge::SeenPositions m_seenPositions; | |
| // CUBE PRUNING VARIABLES | |
| // setup | |
| typedef std::vector<CubeEdge*> CubeEdges; | |
| std::vector<CubeEdges*> m_cubeEdges; | |
| std::deque<QueueItem*> m_queueItemRecycler; | |
| // CUBE PRUNING | |
| // decoding | |
| void Decode(size_t stackInd); | |
| void PostDecode(size_t stackInd); | |
| }; | |
| } | |
| } | |