wiki-cased / tools /mosesdecoder /moses /TranslationModel /RuleTable /PhraseDictionaryALSuffixArray.h
Download tools/mosesdecoder/moses/TranslationModel/RuleTable/PhraseDictionaryALSuffixArray.h from Quagmire1/wiki-cased: direct link, hf CLI and curl.
- Browser
- Download file 967 Bytes
-
https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses/TranslationModel/RuleTable/PhraseDictionaryALSuffixArray.h
- Command line
-
hf download hf://Quagmire1/wiki-cased/tools/mosesdecoder/moses/TranslationModel/RuleTable/PhraseDictionaryALSuffixArray.h
-
curl -L -o PhraseDictionaryALSuffixArray.h https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/moses/TranslationModel/RuleTable/PhraseDictionaryALSuffixArray.h
967 Bytes
| // | |
| // PhraseDictionaryALSuffixArray.h | |
| // moses | |
| // | |
| // Created by Hieu Hoang on 06/11/2011. | |
| // Copyright 2011 __MyCompanyName__. All rights reserved. | |
| // | |
| namespace Moses | |
| { | |
| /** Implementation of in-memory phrase table for use with Adam Lopez's suffix array. | |
| * Does 2 things that the normal in-memory pt doesn't do: | |
| * 1. Loads grammar for a sentence to be decoded only when the sentence is being decoded. Unload afterwards | |
| 2. Format of the pt file follows Hiero, rather than Moses | |
| */ | |
| class PhraseDictionaryALSuffixArray : public PhraseDictionaryMemory | |
| { | |
| public: | |
| PhraseDictionaryALSuffixArray(const std::string &line); | |
| void Load(AllOptions::ptr const& opts); | |
| void InitializeForInput(ttasksptr const& ttask); | |
| void CleanUpAfterSentenceProcessing(const InputType& source); | |
| protected: | |
| }; | |
| } | |