Moses::RuleTableUTrie Class Reference

#include <UTrie.h>

Inheritance diagram for Moses::RuleTableUTrie:

Inheritance graph
[legend]
Collaboration diagram for Moses::RuleTableUTrie:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 RuleTableUTrie (const std::string &line)
const UTrieNodeGetRootNode () const
ChartRuleLookupManagerCreateRuleLookupManager (const ChartParser &, const ChartCellCollectionBase &, std::size_t)
 Create a sentence-specific manager for SCFG rule lookup.


Detailed Description

Implementation of RuleTableTrie. A RuleTableUTrie is designed to store string-to-tree SCFG grammars only (i.e. rules can have distinct labels on the target side, but only a generic non-terminal on the source side). A key is the source RHS (one symbol per edge) of a rule and a mapped value is the collection of grammar rules that share the same source RHS.

(The 'U' in UTrie stands for 'unlabelled' -- the keys are unlabelled and the target labels are stored on the node values, as opposed to the grammar being a monolingual projection with target labels projected onto the source side.)

Definition at line 45 of file UTrie.h.


Constructor & Destructor Documentation

Moses::RuleTableUTrie::RuleTableUTrie ( const std::string &  line  )  [inline]

Definition at line 48 of file UTrie.h.


Member Function Documentation

ChartRuleLookupManager * Moses::RuleTableUTrie::CreateRuleLookupManager ( const ChartParser ,
const ChartCellCollectionBase ,
std::size_t   
) [virtual]

Create a sentence-specific manager for SCFG rule lookup.

Implements Moses::PhraseDictionary.

Definition at line 81 of file UTrie.cpp.

const UTrieNode& Moses::RuleTableUTrie::GetRootNode (  )  const [inline]

Definition at line 52 of file UTrie.h.


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

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