mosesdecoder/moses/TranslationModel/PhraseDictionaryDynSuffixArray.h

38 lines
1.1 KiB
C
Raw Normal View History

#ifndef moses_PhraseDictionaryDynSuffixArray_h
#define moses_PhraseDictionaryDynSuffixArray_h
#include <map>
2013-07-28 19:38:33 +04:00
#include "moses/TypeDef.h"
#include "moses/TranslationModel/PhraseDictionary.h"
#include "moses/TranslationModel/BilingualDynSuffixArray.h"
namespace Moses
{
2012-06-29 02:29:46 +04:00
/** Implementation of a phrase table using the biconcor suffix array.
* Wrapper around a BilingualDynSuffixArray object
*/
class PhraseDictionaryDynSuffixArray: public PhraseDictionary
{
public:
2013-02-22 23:17:57 +04:00
PhraseDictionaryDynSuffixArray(const std::string &line);
~PhraseDictionaryDynSuffixArray();
bool InitDictionary();
2013-06-26 20:12:22 +04:00
void Load();
// functions below required by base class
const TargetPhraseCollection* GetTargetPhraseCollectionLEGACY(const Phrase& src) const;
void insertSnt(string&, string&, string&);
void deleteSnt(unsigned, unsigned);
ChartRuleLookupManager *CreateRuleLookupManager(const ChartParser &, const ChartCellCollectionBase&);
2013-06-26 20:12:22 +04:00
void SetParameter(const std::string& key, const std::string& value);
private:
BilingualDynSuffixArray *m_biSA;
2013-06-26 20:12:22 +04:00
std::string m_source, m_target, m_alignments;
2013-06-26 20:12:22 +04:00
std::vector<float> m_weight;
};
} // end namespace
#endif