Moses::Phrase Class Reference

#include <Phrase.h>

Inheritance diagram for Moses::Phrase:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool HasScope () const
virtual SPTR< ContextScopeGetScope () const
 Phrase ()
 Phrase (size_t reserveSize)
 Phrase (const std::vector< const Word * > &mergeWords)
void SwapWords (Phrase &other)
virtual ~Phrase ()
void CreateFromString (FactorDirection direction, const std::vector< FactorType > &factorOrder, const StringPiece &phraseString, Word **lhs)
void MergeFactors (const Phrase &copy)
void MergeFactors (const Phrase &copy, FactorType factorType)
 copy a single factor (specified by factorType)
void MergeFactors (const Phrase &copy, const std::vector< FactorType > &factorVec)
 copy all factors specified in factorVec and none others
bool IsCompatible (const Phrase &inputPhrase) const
bool IsCompatible (const Phrase &inputPhrase, FactorType factorType) const
bool IsCompatible (const Phrase &inputPhrase, const std::vector< FactorType > &factorVec) const
size_t GetSize () const
 number of words
const WordGetWord (size_t pos) const
 word at a particular position
WordGetWord (size_t pos)
WordFront ()
WordBack ()
const WordFront () const
const WordBack () const
const FactorGetFactor (size_t pos, FactorType factorType) const
 particular factor at a particular position
void SetFactor (size_t pos, FactorType factorType, const Factor *factor)
size_t GetNumTerminals () const
size_t GetNumNonTerminals () const
bool Contains (const std::vector< std::vector< std::string > > &subPhraseVector, const std::vector< FactorType > &inputFactor) const
 whether the 2D vector is a substring of this phrase
size_t Find (const Phrase &sought, int maxUnknown) const
WordAddWord ()
 create an empty word at the end of the phrase
void AddWord (const Word &newWord)
 create copy of input word at the end of the phrase
void Append (const Phrase &endPhrase)
void PrependWord (const Word &newWord)
void Clear ()
void RemoveWord (size_t pos)
void InitStartEndWord ()
Phrase GetSubString (const Range &range) const
 create new phrase class that is a substring of this phrase
Phrase GetSubString (const Range &range, FactorType factorType) const
std::string GetStringRep (std::vector< FactorType > const &factorsToPrint, AllOptions const *opts=NULL) const
 return a string rep of the phrase;
 TO_STRING ()
int Compare (const Phrase &other) const
bool operator< (const Phrase &compare) const
size_t hash () const
bool operator== (const Phrase &compare) const
bool operator!= (const Phrase &compare) const
void OnlyTheseFactors (const FactorMask &factors)

Static Public Member Functions

static void InitializeMemPool ()
static void FinalizeMemPool ()

Protected Attributes

std::vector< Wordm_words

Friends

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


Detailed Description

Representation of a phrase, ie. a contiguous number of words. Wrapper for vector of words

Definition at line 49 of file Phrase.h.


Constructor & Destructor Documentation

Phrase::Phrase (  ) 

create empty phrase

Definition at line 40 of file Phrase.cpp.

Referenced by Moses::TargetPhrase::SetRuleSource(), and Moses::TargetPhrase::TargetPhrase().

Here is the caller graph for this function:

Phrase::Phrase ( size_t  reserveSize  )  [explicit]

Definition at line 42 of file Phrase.cpp.

References m_words.

Moses::Phrase::Phrase ( const std::vector< const Word * > &  mergeWords  )  [explicit]

create phrase from vectors of words

Phrase::~Phrase (  )  [virtual]

destructor

Definition at line 55 of file Phrase.cpp.


Member Function Documentation

void Moses::Phrase::AddWord ( const Word newWord  )  [inline]

create copy of input word at the end of the phrase

Definition at line 169 of file Phrase.h.

References AddWord().

Here is the call graph for this function:

Word & Phrase::AddWord (  ) 

void Phrase::Append ( const Phrase endPhrase  ) 

const Word& Moses::Phrase::Back (  )  const [inline]

Definition at line 141 of file Phrase.h.

References GetSize(), and m_words.

Here is the call graph for this function:

Word& Moses::Phrase::Back (  )  [inline]

Definition at line 133 of file Phrase.h.

References GetSize(), and m_words.

Referenced by Moses::RuleScope::EvaluateInIsolation(), Moses::MaxSpanFreeNonTermSource::EvaluateWithSourceContext(), Moses::ChartKBestExtractor::GetOutputPhrase(), and Moses::ChartHypothesis::GetOutputPhrase().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::Phrase::Clear (  )  [inline]

int Phrase::Compare ( const Phrase other  )  const

Definition at line 235 of file Phrase.cpp.

References GetSize(), and GetWord().

Referenced by Moses::HypothesisScoreOrderer::operator()(), Moses::HypothesisScoreOrdererWithDistortion::operator()(), and operator<().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Moses::Phrase::Contains ( const std::vector< std::vector< std::string > > &  subPhraseVector,
const std::vector< FactorType > &  inputFactor 
) const

whether the 2D vector is a substring of this phrase

void Phrase::CreateFromString ( FactorDirection  direction,
const std::vector< FactorType > &  factorOrder,
const StringPiece phraseString,
Word **  lhs 
)

void Phrase::FinalizeMemPool (  )  [static]

Definition at line 385 of file Phrase.cpp.

Referenced by Moses::StaticData::~StaticData().

Here is the caller graph for this function:

size_t Phrase::Find ( const Phrase sought,
int  maxUnknown 
) const

Definition at line 415 of file Phrase.cpp.

References GetSize(), GetWord(), Moses::Word::IsOOV(), and NOT_FOUND.

Here is the call graph for this function:

const Word& Moses::Phrase::Front (  )  const [inline]

Definition at line 137 of file Phrase.h.

References m_words.

Word& Moses::Phrase::Front (  )  [inline]

Definition at line 129 of file Phrase.h.

References m_words.

Referenced by Moses::RuleScope::EvaluateInIsolation(), and Moses::MaxSpanFreeNonTermSource::EvaluateWithSourceContext().

Here is the caller graph for this function:

const Factor* Moses::Phrase::GetFactor ( size_t  pos,
FactorType  factorType 
) const [inline]

size_t Moses::Phrase::GetNumNonTerminals (  )  const [inline]

Definition at line 156 of file Phrase.h.

References GetNumTerminals(), and GetSize().

Referenced by Moses::BilingualLM::EvaluateWhenApplied(), Moses::SyntaxRHS::EvaluateWithSourceContext(), and Moses::ExampleStatelessFF::EvaluateWithSourceContext().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t Phrase::GetNumTerminals (  )  const

virtual SPTR<ContextScope> Moses::Phrase::GetScope (  )  const [inline, virtual]

Reimplemented in Moses::TargetPhrase.

Definition at line 62 of file Phrase.h.

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

number of words

Reimplemented in Moses::Sentence.

Definition at line 117 of file Phrase.h.

References m_words.

Referenced by Append(), Back(), Moses::calcNgramExpectations(), Moses::LanguageModelKen< Model >::CalcScore(), Moses::LanguageModelIRST::CalcScore(), Moses::LanguageModelImplementation::CalcScore(), Moses::LanguageModelDALM::CalcScore(), Moses::BackwardLanguageModel< Model >::CalcScore(), Moses::BleuScoreFeature::CalculateBleu(), Compare(), Moses::TargetWordInsertionFeature::ComputeFeatures(), Moses::SourceWordDeletionFeature::ComputeFeatures(), Moses::EditOps::ComputeFeatures(), Moses::CorrectionPattern::ComputeFeatures(), Moses::SparseReordering::CopyScores(), Moses::ProbingPT::CreateTargetPhrase(), Moses::ExamplePT::CreateTargetPhrase(), Moses::PhraseDictionaryGroup::CreateTargetPhraseCollection(), Moses::TranslationOptionCollectionLattice::CreateTranslationOptions(), Moses::PhraseDecoder::DecodeCollection(), Moses::BackwardLanguageModel< Model >::Evaluate(), Moses::UnalignedWordCountFeature::EvaluateInIsolation(), Moses::RuleScope::EvaluateInIsolation(), Moses::RulePairUnlexicalizedSource::EvaluateInIsolation(), Moses::PhrasePairFeature::EvaluateInIsolation(), Moses::PhraseOrientationFeature::EvaluateInIsolation(), Moses::PhraseLengthFeature::EvaluateInIsolation(), Moses::OpSequenceModel::EvaluateInIsolation(), Moses::DesegModel::EvaluateInIsolation(), Moses::CountNonTerms::EvaluateInIsolation(), Moses::RDLM::EvaluateWhenApplied(), Moses::LanguageModelKen< Model >::EvaluateWhenApplied(), Moses::LanguageModelImplementation::EvaluateWhenApplied(), Moses::LanguageModelDALM::EvaluateWhenApplied(), Moses::BilingualLM::EvaluateWhenApplied(), Moses::VW::EvaluateWhenApplied(), Moses::TreeStructureFeature::EvaluateWhenApplied(), Moses::TargetPreferencesFeature::EvaluateWhenApplied(), Moses::TargetNgramFeature::EvaluateWhenApplied(), Moses::TargetBigramFeature::EvaluateWhenApplied(), Moses::SoftMatchingFeature::EvaluateWhenApplied(), Moses::PhraseBoundaryFeature::EvaluateWhenApplied(), Moses::OpSequenceModel::EvaluateWhenApplied(), Moses::GlobalLexicalModelUnlimited::EvaluateWhenApplied(), Moses::DistortionScoreProducer::EvaluateWhenApplied(), Moses::ConstrainedDecoding::EvaluateWhenApplied(), Moses::BleuScoreFeature::EvaluateWhenApplied(), Moses::SoftSourceSyntacticConstraintsFeature::EvaluateWithSourceContext(), Moses::PhrasePairFeature::EvaluateWithSourceContext(), Moses::NieceTerminal::EvaluateWithSourceContext(), Moses::Model1Feature::EvaluateWithSourceContext(), Moses::fillIdSeq(), Find(), Moses::VWFeatureContext::GetAlignedSourceWords(), Moses::PhraseDictionaryMultiModelCounts::GetAlignmentsForLexWeights(), Moses::BleuScoreFeature::GetClippedNgramMatchesAndCounts(), Moses::ProbingPT::GetKey(), Moses::InputPath::GetLastWord(), Moses::BleuScoreFeature::GetNgramMatchCounts(), Moses::BleuScoreFeature::GetNgramMatchCounts_overlap(), GetNumNonTerminals(), GetNumTerminals(), Moses::Syntax::GetOneBestTargetYield(), Moses::PhraseDictionaryFuzzyMatch::GetOrCreateNode(), Moses::PhraseDictionaryMemory::GetOrCreateNode(), GetOutputFactors(), Moses::Syntax::KBestExtractor::GetOutputPhrase(), Moses::ChartKBestExtractor::GetOutputPhrase(), Moses::ChartHypothesis::GetOutputPhrase(), Moses::ChartKBestExtractor::GetOutputScoreBreakdown(), Moses::Syntax::KBestExtractor::GetOutputTree(), Moses::ChartKBestExtractor::GetOutputTree(), Moses::GetOutputWords(), Moses::Edge::GetPhraseSuffix(), Moses::Manager::GetPlaceholders(), Moses::Hypothesis::GetPlaceholders(), Moses::LexicalReorderingTableCompact::GetScore(), Moses::LexicalReorderingTableTree::GetScore(), Moses::LexicalReorderingTableMemory::GetScore(), Moses::ProbingPT::GetSourceProbingIds(), Moses::TrellisPath::GetSurfacePhrase(), Moses::PDTAimp::GetTargetPhraseCollection(), Moses::PhraseDictionaryOnDisk::GetTargetPhraseCollectionBatch(), Moses::ProbingPT::GetTargetPhraseCollectionBatch(), Moses::PhraseDictionaryTransliteration::GetTargetPhraseCollectionBatch(), Moses::PhraseDictionaryMemory::GetTargetPhraseCollectionBatch(), Moses::PhraseDictionaryMemory::GetTargetPhraseCollectionLEGACY(), Moses::PhraseDictionaryCompact::GetTargetPhraseCollectionNonCacheLEGACY(), Moses::PhraseDictionaryCompact::GetTargetPhraseCollectionRaw(), Moses::VWFeatureContext::GetWord(), Moses::Edge::GetWordsSize(), hash(), IsCompatible(), Moses::TranslationOption::IsDeletionOption(), Moses::LatticeMBRSolution::LatticeMBRSolution(), main(), MergeFactors(), OnlyTheseFactors(), Moses::VWFeatureTargetPhraseInternal::operator()(), Moses::VWFeatureTargetBigrams::operator()(), Moses::TrainingLossBLEU::operator()(), operator<<(), Moses::operator<<(), operator==(), Moses::Manager::OutputAlignment(), Moses::Hypothesis::OutputAlignment(), Moses::Syntax::Manager::OutputBest(), Moses::Incremental::Manager::OutputNBestList(), Moses::Manager::OutputSearchGraphAsHypergraph(), Moses::Manager::OutputSearchGraphAsSLF(), Moses::Manager::OutputSurface(), Moses::BaseManager::OutputSurface(), Moses::Mmsapt::PrefixExists(), PrependWord(), Moses::Hypothesis::PrintHypothesis(), Moses::DecodeStepTranslation::Process(), Moses::DecodeStepGeneration::Process(), Moses::DecodeStepTranslation::ProcessLEGACY(), Moses::LanguageModelKen< Model >::ReportHistoryOrder(), Moses::PhraseDictionary::SatisfyBackoff(), Moses::VWTargetSentence::SetConstraints(), Moses::ReorderingConstraint::SetMonotoneAtPunctuation(), Moses::PhraseOrientationFeature::SparseWordR2LScore(), Moses::BackwardLanguageModelTest::testCalcScore(), Moses::BackwardLanguageModelTest::testEvaluate(), Moses::TranslationOptionCollectionText::ViolatesXmlOptionsConstraint(), and Moses::VWState::VWState().

std::string Moses::Phrase::GetStringRep ( std::vector< FactorType > const &  factorsToPrint,
AllOptions const *  opts = NULL 
) const

Phrase Phrase::GetSubString ( const Range range,
FactorType  factorType 
) const

Definition at line 104 of file Phrase.cpp.

References Moses::Range::GetEndPos(), GetFactor(), Moses::Range::GetNumWordsCovered(), Moses::Range::GetStartPos(), and Moses::Word::SetFactor().

Here is the call graph for this function:

Phrase Phrase::GetSubString ( const Range range  )  const

Word& Moses::Phrase::GetWord ( size_t  pos  )  [inline]

Definition at line 125 of file Phrase.h.

References m_words.

const Word& Moses::Phrase::GetWord ( size_t  pos  )  const [inline]

word at a particular position

Reimplemented in Moses::Sentence.

Definition at line 122 of file Phrase.h.

References m_words.

Referenced by Append(), Moses::calcNgramExpectations(), Moses::LanguageModelKen< Model >::CalcScore(), Moses::LanguageModelIRST::CalcScore(), Moses::LanguageModelImplementation::CalcScore(), Moses::LanguageModelDALM::CalcScore(), Moses::BackwardLanguageModel< Model >::CalcScore(), Compare(), Moses::TargetWordInsertionFeature::ComputeFeatures(), Moses::SourceWordDeletionFeature::ComputeFeatures(), Moses::EditOps::ComputeFeatures(), Moses::CorrectionPattern::ComputeFeatures(), Moses::SparseReordering::CopyScores(), Moses::ChartTranslationOptions::CreateSourceRuleFromInputPath(), Moses::ExamplePT::CreateTargetPhrase(), Moses::PhraseDecoder::DecodeCollection(), Moses::BackwardLanguageModel< Model >::Evaluate(), Moses::UnalignedWordCountFeature::EvaluateInIsolation(), Moses::RulePairUnlexicalizedSource::EvaluateInIsolation(), Moses::PhrasePairFeature::EvaluateInIsolation(), Moses::PhraseOrientationFeature::EvaluateInIsolation(), Moses::OpSequenceModel::EvaluateInIsolation(), Moses::DesegModel::EvaluateInIsolation(), Moses::CountNonTerms::EvaluateInIsolation(), Moses::RDLM::EvaluateWhenApplied(), Moses::LanguageModelKen< Model >::EvaluateWhenApplied(), Moses::LanguageModelImplementation::EvaluateWhenApplied(), Moses::LanguageModelDALM::EvaluateWhenApplied(), Moses::TreeStructureFeature::EvaluateWhenApplied(), Moses::TargetPreferencesFeature::EvaluateWhenApplied(), Moses::TargetNgramFeature::EvaluateWhenApplied(), Moses::TargetConstituentAdjacencyFeature::EvaluateWhenApplied(), Moses::TargetBigramFeature::EvaluateWhenApplied(), Moses::SoftMatchingFeature::EvaluateWhenApplied(), Moses::PhraseOrientationFeature::EvaluateWhenApplied(), Moses::PhraseBoundaryFeature::EvaluateWhenApplied(), Moses::OpSequenceModel::EvaluateWhenApplied(), Moses::GlobalLexicalModelUnlimited::EvaluateWhenApplied(), Moses::DesegModel::EvaluateWhenApplied(), Moses::DistortionScoreProducer::EvaluateWhenApplied(), Moses::BleuScoreFeature::EvaluateWhenApplied(), Moses::WordTranslationFeature::EvaluateWithSourceContext(), Moses::SoftSourceSyntacticConstraintsFeature::EvaluateWithSourceContext(), Moses::PhrasePairFeature::EvaluateWithSourceContext(), Moses::NieceTerminal::EvaluateWithSourceContext(), Moses::Model1Feature::EvaluateWithSourceContext(), Moses::fillIdSeq(), Find(), Moses::Hypothesis::GetCurrWord(), Moses::InputPath::GetLastWord(), GetNumTerminals(), Moses::Syntax::GetOneBestTargetYield(), Moses::PhraseDictionaryFuzzyMatch::GetOrCreateNode(), Moses::PhraseDictionaryMemory::GetOrCreateNode(), Moses::UTrieNode::GetOrCreateTargetPhraseCollection(), Moses::Syntax::S2T::RuleTrieScope3::Node::GetOrCreateTargetPhraseCollection(), Moses::Syntax::KBestExtractor::GetOutputPhrase(), Moses::ChartKBestExtractor::GetOutputPhrase(), Moses::ChartHypothesis::GetOutputPhrase(), Moses::ChartKBestExtractor::GetOutputScoreBreakdown(), Moses::Syntax::KBestExtractor::GetOutputTree(), Moses::ChartKBestExtractor::GetOutputTree(), Moses::GetOutputWords(), Moses::Edge::GetPhraseSuffix(), Moses::ProbingPT::GetSourceProbingIds(), GetSubString(), Moses::PDTAimp::GetTargetPhraseCollection(), Moses::PhraseDictionaryOnDisk::GetTargetPhraseCollectionBatch(), Moses::PhraseDictionaryMemory::GetTargetPhraseCollectionBatch(), Moses::PhraseDictionaryMemory::GetTargetPhraseCollectionLEGACY(), Moses::VWFeatureTarget::GetWord(), Moses::VWFeatureContext::GetWord(), hash(), Moses::LatticeMBRSolution::LatticeMBRSolution(), Moses::operator<<(), operator==(), Moses::Manager::OutputSearchGraphAsSLF(), Moses::Manager::OutputSurface(), Moses::BaseManager::OutputSurface(), Moses::DecodeStepGeneration::Process(), Moses::ChartParserUnknown::Process(), Moses::TranslationOptionCollection::ProcessOneUnknownWord(), Moses::LanguageModelKen< Model >::ReportHistoryOrder(), Moses::TargetPhrase::SetAlignmentInfo(), Moses::ReorderingConstraint::SetMonotoneAtPunctuation(), Moses::PhraseOrientationFeature::SparseWordL2RScore(), and Moses::PhraseOrientationFeature::SparseWordR2LScore().

size_t Phrase::hash (  )  const

Definition at line 258 of file Phrase.cpp.

References GetSize(), and GetWord().

Referenced by Moses::hash_value().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual bool Moses::Phrase::HasScope (  )  const [inline, virtual]

Reimplemented in Moses::TargetPhrase.

Definition at line 58 of file Phrase.h.

void Phrase::InitializeMemPool (  )  [static]

No longer does anything as not using mem pool for Phrase class anymore

Definition at line 381 of file Phrase.cpp.

Referenced by Moses::StaticData::StaticData().

Here is the caller graph for this function:

void Phrase::InitStartEndWord (  ) 

Definition at line 400 of file Phrase.cpp.

References Moses::FactorCollection::AddFactor(), AddWord(), BOS_, EOS_, Moses::Input, Moses::FactorCollection::Instance(), PrependWord(), and Moses::Word::SetFactor().

Referenced by Moses::ConstrainedDecoding::Load().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Phrase::IsCompatible ( const Phrase inputPhrase,
const std::vector< FactorType > &  factorVec 
) const

Definition at line 355 of file Phrase.cpp.

References GetFactor(), and GetSize().

Here is the call graph for this function:

bool Phrase::IsCompatible ( const Phrase inputPhrase,
FactorType  factorType 
) const

Definition at line 343 of file Phrase.cpp.

References GetFactor(), and GetSize().

Here is the call graph for this function:

bool Phrase::IsCompatible ( const Phrase inputPhrase  )  const

compare 2 phrases to ensure no factors are lost if the phrases are merged must run IsCompatible() to ensure incompatible factors aren't being overwritten

Definition at line 321 of file Phrase.cpp.

References GetFactor(), GetSize(), and NULL.

Referenced by Moses::TranslationOption::IsCompatible().

Here is the call graph for this function:

Here is the caller graph for this function:

void Phrase::MergeFactors ( const Phrase copy,
const std::vector< FactorType > &  factorVec 
)

copy all factors specified in factorVec and none others

Definition at line 81 of file Phrase.cpp.

References GetFactor(), GetSize(), SetFactor(), and UTIL_THROW_IF2.

Here is the call graph for this function:

void Phrase::MergeFactors ( const Phrase copy,
FactorType  factorType 
)

copy a single factor (specified by factorType)

Definition at line 74 of file Phrase.cpp.

References GetFactor(), GetSize(), SetFactor(), and UTIL_THROW_IF2.

Here is the call graph for this function:

void Phrase::MergeFactors ( const Phrase copy  ) 

copy factors from the other phrase to this phrase. IsCompatible() must be run beforehand to ensure incompatible factors aren't overwritten

Definition at line 59 of file Phrase.cpp.

References GetFactor(), GetSize(), NULL, SetFactor(), and UTIL_THROW_IF2.

Referenced by Moses::TargetPhrase::Merge(), and Moses::DecodeStepGeneration::Process().

Here is the call graph for this function:

Here is the caller graph for this function:

void Phrase::OnlyTheseFactors ( const FactorMask factors  ) 

Definition at line 389 of file Phrase.cpp.

References GetSize(), NULL, and SetFactor().

Referenced by Moses::PhraseDictionaryMemory::GetTargetPhraseCollectionLEGACY().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Moses::Phrase::operator!= ( const Phrase compare  )  const [inline]

Definition at line 214 of file Phrase.h.

bool Moses::Phrase::operator< ( const Phrase compare  )  const [inline]

transitive comparison between 2 phrases used to insert & find phrase in dictionary

Definition at line 207 of file Phrase.h.

References Compare().

Here is the call graph for this function:

bool Phrase::operator== ( const Phrase compare  )  const

Definition at line 267 of file Phrase.cpp.

References GetSize(), and GetWord().

Here is the call graph for this function:

void Phrase::PrependWord ( const Word newWord  ) 

Definition at line 151 of file Phrase.cpp.

References AddWord(), GetSize(), and m_words.

Referenced by InitStartEndWord().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::Phrase::RemoveWord ( size_t  pos  )  [inline]

Definition at line 181 of file Phrase.h.

References m_words, and UTIL_THROW_IF2.

Referenced by Moses::Syntax::Manager::OutputBest(), and Moses::Incremental::Manager::OutputNBestList().

Here is the caller graph for this function:

void Moses::Phrase::SetFactor ( size_t  pos,
FactorType  factorType,
const Factor factor 
) [inline]

Definition at line 150 of file Phrase.h.

References m_words.

Referenced by MergeFactors(), and OnlyTheseFactors().

Here is the caller graph for this function:

void Moses::Phrase::SwapWords ( Phrase other  )  [inline]

Definition at line 81 of file Phrase.h.

References m_words, and Moses::swap().

Referenced by Moses::swap().

Here is the call graph for this function:

Here is the caller graph for this function:

Moses::Phrase::TO_STRING (  ) 

Reimplemented in Moses::TargetPhrase.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const Phrase  
) [friend]


Member Data Documentation

std::vector<Word> Moses::Phrase::m_words [protected]


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

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