Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'moses/TargetPhrase.h')
-rw-r--r--moses/TargetPhrase.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/moses/TargetPhrase.h b/moses/TargetPhrase.h
index 63b8f01fd..4e6b1278b 100644
--- a/moses/TargetPhrase.h
+++ b/moses/TargetPhrase.h
@@ -53,16 +53,16 @@ class PhraseDictionary;
class TargetPhrase: public Phrase
{
public:
- typedef std::map<FeatureFunction const*, boost::shared_ptr<Scores> >
- ScoreCache_t;
+ typedef std::map<FeatureFunction const*, boost::shared_ptr<Scores> > ScoreCache_t;
ScoreCache_t const& GetExtraScores() const;
Scores const* GetExtraScores(FeatureFunction const* ff) const;
- void SetExtraScores(FeatureFunction const* ff,
- boost::shared_ptr<Scores> const& scores);
- ttasksptr m_ttask;
+ void SetExtraScores(FeatureFunction const* ff,boost::shared_ptr<Scores> const& scores);
+
private:
ScoreCache_t m_cached_scores;
+ ttasksptr m_ttask;
+ bool m_ttask_flag;
private:
friend std::ostream& operator<<(std::ostream&, const TargetPhrase&);
@@ -93,6 +93,7 @@ public:
TargetPhrase(ttasksptr &ttask, std::string out_string, const PhraseDictionary *pt = NULL);
explicit TargetPhrase(ttasksptr &ttask, const Phrase &targetPhrase, const PhraseDictionary *pt);
const ttasksptr& GetTtask() const;
+ bool HasTtaskSPtr() const;
~TargetPhrase();