Moses::Sentence Class Reference

#include <Sentence.h>

Inheritance diagram for Moses::Sentence:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Sentence ()
InputTypeEnum GetType () const
Phrase GetSubString (const WordsRange &r) const
 Calls Phrase::GetSubString(). Implements abstract InputType::GetSubString().
const WordGetWord (size_t pos) const
 Calls Phrase::GetWord(). Implements abstract InputType::GetWord().
size_t GetSize () const
 Calls Phrase::GetSize(). Implements abstract InputType::GetSize().
bool XmlOverlap (size_t startPos, size_t endPos) const
 Returns true if there were any XML tags parsed that at least partially covered the range passed.
void GetXmlTranslationOptions (std::vector< TranslationOption * > &list, size_t startPos, size_t endPos) const
 populates vector argument with XML force translation options for the specific range passed
int Read (std::istream &in, const std::vector< FactorType > &factorOrder)
 populate this InputType with data from in stream
void Print (std::ostream &out) const
 Output debugging info to stream out.
TranslationOptionCollectionCreateTranslationOptionCollection (const TranslationSystem *system) const
 create trans options specific to this InputType
void CreateFromString (const std::vector< FactorType > &factorOrder, const std::string &phraseString, const std::string &factorDelimiter)
const NonTerminalSetGetLabelSet (size_t, size_t) const


Detailed Description

Definition at line 45 of file Sentence.h.


Constructor & Destructor Documentation

Moses::Sentence::Sentence (  ) 

Definition at line 36 of file Sentence.cpp.

References Moses::ChartDecoding, Moses::StaticData::GetSearchAlgorithm(), and Moses::StaticData::Instance().

Here is the call graph for this function:


Member Function Documentation

void Moses::Sentence::CreateFromString ( const std::vector< FactorType > &  factorOrder,
const std::string &  phraseString,
const std::string &  factorDelimiter 
)

Definition at line 209 of file Sentence.cpp.

Referenced by Read().

Here is the caller graph for this function:

TranslationOptionCollection * Moses::Sentence::CreateTranslationOptionCollection ( const TranslationSystem system  )  const [virtual]

create trans options specific to this InputType

Implements Moses::InputType.

Definition at line 173 of file Sentence.cpp.

References CHECK, Moses::StaticData::GetMaxNoTransOptPerCoverage(), Moses::StaticData::GetTranslationOptionThreshold(), and Moses::StaticData::Instance().

Here is the call graph for this function:

const NonTerminalSet& Moses::Sentence::GetLabelSet ( size_t  ,
size_t   
) const [inline, virtual]

Implements Moses::InputType.

Reimplemented in Moses::TreeInput.

Definition at line 99 of file Sentence.h.

size_t Moses::Sentence::GetSize (  )  const [inline, virtual]

Calls Phrase::GetSize(). Implements abstract InputType::GetSize().

Implements Moses::InputType.

Definition at line 80 of file Sentence.h.

Referenced by Moses::ConfusionNet::ConfusionNet(), Moses::operator<<(), Moses::TreeInput::Read(), and Read().

Here is the caller graph for this function:

Phrase Moses::Sentence::GetSubString ( const WordsRange r  )  const [inline, virtual]

Calls Phrase::GetSubString(). Implements abstract InputType::GetSubString().

Implements Moses::InputType.

Definition at line 70 of file Sentence.h.

Referenced by Read().

Here is the caller graph for this function:

InputTypeEnum Moses::Sentence::GetType (  )  const [inline, virtual]

Implements Moses::InputType.

Reimplemented in Moses::TreeInput.

Definition at line 65 of file Sentence.h.

References Moses::SentenceInput.

const Word& Moses::Sentence::GetWord ( size_t  pos  )  const [inline, virtual]

Calls Phrase::GetWord(). Implements abstract InputType::GetWord().

Implements Moses::InputType.

Definition at line 75 of file Sentence.h.

Referenced by Moses::ConfusionNet::ConfusionNet().

Here is the caller graph for this function:

void Moses::Sentence::GetXmlTranslationOptions ( std::vector< TranslationOption * > &  list,
size_t  startPos,
size_t  endPos 
) const

populates vector argument with XML force translation options for the specific range passed

Definition at line 197 of file Sentence.cpp.

Referenced by Moses::TranslationOptionCollectionText::CreateXmlOptionsForRange().

Here is the caller graph for this function:

void Moses::Sentence::Print ( std::ostream &   )  const [virtual]

Output debugging info to stream out.

Implements Moses::InputType.

Reimplemented in Moses::TreeInput.

Definition at line 181 of file Sentence.cpp.

int Moses::Sentence::Read ( std::istream &  in,
const std::vector< FactorType > &  factorOrder 
) [virtual]

bool Moses::Sentence::XmlOverlap ( size_t  startPos,
size_t  endPos 
) const

Returns true if there were any XML tags parsed that at least partially covered the range passed.

Definition at line 187 of file Sentence.cpp.

Referenced by Moses::TranslationOptionCollectionText::HasXmlOptionsOverlappingRange().

Here is the caller graph for this function:


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

Generated on Wed Feb 8 08:04:09 2012 for Moses by  doxygen 1.5.9