Moses::ChartRuleCollection Class Reference

a list of target phrases that is trsnalated from the same source phrase More...

#include <ChartRuleCollection.h>

List of all members.

Public Types

typedef std::vector< ChartRule * >
::iterator 
iterator
typedef std::vector< ChartRule * >
::const_iterator 
const_iterator

Public Member Functions

iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
 ChartRuleCollection ()
 ~ChartRuleCollection ()
const ChartRuleGet (size_t ind) const
size_t GetSize () const
 divide collection into 2 buckets using std::nth_element, the top & bottom according to table limit
bool IsEmpty () const
 wether collection has any phrases
void Add (const Moses::TargetPhraseCollection &targetPhraseCollection, const WordConsumed &wordConsumed, bool ruleLimit, size_t tableLimit)
void CreateChartRules (size_t ruleLimit)

Static Public Member Functions

static void Delete (ChartRuleCollection *obj)

Protected Attributes

std::vector< ChartRule * > m_collection
float m_scoreThreshold

Friends

std::ostream & operator<< (std::ostream &, const ChartRuleCollection &)


Detailed Description

a list of target phrases that is trsnalated from the same source phrase

Member Typedef Documentation


Constructor & Destructor Documentation

Moses::ChartRuleCollection::ChartRuleCollection (  ) 

References m_collection, and m_scoreThreshold.

Moses::ChartRuleCollection::~ChartRuleCollection (  ) 

References m_collection, and Moses::RemoveAllInColl().

Here is the call graph for this function:


Member Function Documentation

void Moses::ChartRuleCollection::Add ( const Moses::TargetPhraseCollection targetPhraseCollection,
const WordConsumed wordConsumed,
bool  ruleLimit,
size_t  tableLimit 
)

const_iterator Moses::ChartRuleCollection::begin (  )  const [inline]

References m_collection.

iterator Moses::ChartRuleCollection::begin (  )  [inline]

References m_collection.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

void Moses::ChartRuleCollection::CreateChartRules ( size_t  ruleLimit  ) 

References Moses::ChartRule::CreateNonTermIndex(), and m_collection.

Referenced by Moses::PhraseDictionarySCFG::GetChartRuleCollection(), and Moses::PhraseDictionaryOnDisk::GetChartRuleCollection().

Here is the call graph for this function:

Here is the caller graph for this function:

static void Moses::ChartRuleCollection::Delete ( ChartRuleCollection obj  )  [inline, static]

Referenced by Moses::PhraseDictionarySCFG::CleanUp().

Here is the caller graph for this function:

const_iterator Moses::ChartRuleCollection::end (  )  const [inline]

References m_collection.

iterator Moses::ChartRuleCollection::end (  )  [inline]

References m_collection.

Referenced by Moses::operator<<().

Here is the caller graph for this function:

const ChartRule& Moses::ChartRuleCollection::Get ( size_t  ind  )  const [inline]

References m_collection.

size_t Moses::ChartRuleCollection::GetSize (  )  const [inline]

divide collection into 2 buckets using std::nth_element, the top & bottom according to table limit

number of target phrases in this collection

References m_collection.

bool Moses::ChartRuleCollection::IsEmpty (  )  const [inline]

wether collection has any phrases

References m_collection.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const ChartRuleCollection coll 
) [friend]


Member Data Documentation

Referenced by Add(), and ChartRuleCollection().


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

Generated on Wed Sep 22 20:06:09 2010 for Moses by  doxygen 1.5.9