mosesdecoder/moses/TranslationModel/SkeletonPT.h

39 lines
839 B
C
Raw Normal View History

2013-09-25 01:50:43 +04:00
#pragma once
#include "PhraseDictionary.h"
namespace Moses
{
class ChartParser;
class ChartCellCollectionBase;
class ChartRuleLookupManager;
class SkeletonPT : public PhraseDictionary
{
friend std::ostream& operator<<(std::ostream&, const SkeletonPT&);
public:
SkeletonPT(const std::string &line);
void Load();
2013-09-25 19:57:01 +04:00
virtual void CleanUpAfterSentenceProcessing(const InputType& source);
2013-09-25 01:50:43 +04:00
// for phrase-based model
void GetTargetPhraseCollectionBatch(const InputPathList &inputPathQueue) const;
2013-09-25 01:50:43 +04:00
// for syntax/hiero model (CKY+ decoding)
ChartRuleLookupManager* CreateRuleLookupManager(const ChartParser&, const ChartCellCollectionBase&);
TO_STRING();
2013-09-25 19:57:01 +04:00
protected:
mutable std::list<TargetPhraseCollection*> m_allTPColl;
TargetPhrase *CreateTargetPhrase(const Phrase &sourcePhrase) const;
2013-09-25 01:50:43 +04:00
};
} // namespace Moses