Moses::PhraseDictionaryALSuffixArray Class Reference

#include <PhraseDictionaryALSuffixArray.h>

Inheritance diagram for Moses::PhraseDictionaryALSuffixArray:

Inheritance graph
Collaboration diagram for Moses::PhraseDictionaryALSuffixArray:

Collaboration graph

List of all members.

Public Member Functions

 PhraseDictionaryALSuffixArray (const std::string &line)
void Load (AllOptions::ptr const &opts)
 override to load model files
void InitializeForInput (ttasksptr const &ttask)
 Create entry for translation of source to targetPhrase.
void CleanUpAfterSentenceProcessing (const InputType &source)

Detailed Description

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

Definition at line 22 of file PhraseDictionaryALSuffixArray.h.

Constructor & Destructor Documentation

Moses::PhraseDictionaryALSuffixArray::PhraseDictionaryALSuffixArray ( const std::string &  line  ) 

Definition at line 24 of file PhraseDictionaryALSuffixArray.cpp.

References Moses::StaticData::Instance(), Moses::FeatureFunction::ReadParameters(), and Moses::StaticData::ThreadCount().

Here is the call graph for this function:

Member Function Documentation

void Moses::PhraseDictionaryALSuffixArray::CleanUpAfterSentenceProcessing ( const InputType source  )  [virtual]

Reimplemented from Moses::PhraseDictionary.

Definition at line 58 of file PhraseDictionaryALSuffixArray.cpp.

References Moses::PhraseDictionaryMemory::m_collection, and Moses::PhraseDictionaryNodeMemory::Remove().

Here is the call graph for this function:

void Moses::PhraseDictionaryALSuffixArray::InitializeForInput ( ttasksptr const &  ttask  )  [virtual]

void Moses::PhraseDictionaryALSuffixArray::Load ( AllOptions::ptr const &  opts  )  [virtual]

override to load model files

Reimplemented from Moses::RuleTableTrie.

Definition at line 35 of file PhraseDictionaryALSuffixArray.cpp.

References Moses::FeatureFunction::m_options, and Moses::PhraseDictionary::SetFeaturesToApply().

Here is the call graph for this function:

The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:33:53 2017 for Moses by  doxygen 1.5.9