mosesdecoder/moses/TranslationModel/SkeletonPT.h

37 lines
773 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();
void InitializeForInput(InputType const& source);
2013-09-25 19:57:01 +04:00
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&, std::size_t);
2013-09-25 01:50:43 +04:00
TO_STRING();
2013-09-25 19:57:01 +04:00
protected:
TargetPhrase *CreateTargetPhrase(const Phrase &sourcePhrase) const;
2013-09-25 01:50:43 +04:00
};
} // namespace Moses