diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-29 21:16:15 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-29 21:16:15 +0400 |
commit | 6249432407af8730c10bccc7894c0725fcaf5e47 (patch) | |
tree | 3ac1f094b9fdc199b04bc5ef209ce00e3596e37d /moses/TrellisPath.h | |
parent | 59bd7deb4b6b9c4f7b3b7dbb055783528fbc31ca (diff) |
beautify
Diffstat (limited to 'moses/TrellisPath.h')
-rw-r--r-- | moses/TrellisPath.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/moses/TrellisPath.h b/moses/TrellisPath.h index d8005435c..26e722696 100644 --- a/moses/TrellisPath.h +++ b/moses/TrellisPath.h @@ -59,36 +59,36 @@ protected: void InitScore(); public: - TrellisPath(); // not implemented - - //! create path OF pure hypo - TrellisPath(const Hypothesis *hypo); - - /** create path from another path, deviate at edgeIndex by using arc instead, - * which may change other hypo back from there - */ - TrellisPath(const TrellisPath ©, size_t edgeIndex, const Hypothesis *arc); - - //! get score for this path throught trellis - inline float GetTotalScore() const { return m_totalScore; } - - /** list of each hypo/arcs in path. For anything other than the best hypo, it is not possible just to follow the - * m_prevHypo variable in the hypothesis object - */ - inline const std::vector<const Hypothesis *> &GetEdges() const - { - return m_path; - } - - inline size_t GetSize() const - { - return m_path.size(); - } - - //! create a set of next best paths by wiggling 1 of the node at a time. - void CreateDeviantPaths(TrellisPathCollection &pathColl) const; - - //! create a list of next best paths by wiggling 1 of the node at a time. + TrellisPath(); // not implemented + + //! create path OF pure hypo + TrellisPath(const Hypothesis *hypo); + + /** create path from another path, deviate at edgeIndex by using arc instead, + * which may change other hypo back from there + */ + TrellisPath(const TrellisPath ©, size_t edgeIndex, const Hypothesis *arc); + + //! get score for this path throught trellis + inline float GetTotalScore() const { + return m_totalScore; + } + + /** list of each hypo/arcs in path. For anything other than the best hypo, it is not possible just to follow the + * m_prevHypo variable in the hypothesis object + */ + inline const std::vector<const Hypothesis *> &GetEdges() const { + return m_path; + } + + inline size_t GetSize() const { + return m_path.size(); + } + + //! create a set of next best paths by wiggling 1 of the node at a time. + void CreateDeviantPaths(TrellisPathCollection &pathColl) const; + + //! create a list of next best paths by wiggling 1 of the node at a time. void CreateDeviantPaths(TrellisPathList &pathColl) const; inline const ScoreComponentCollection &GetScoreBreakdown() const { |