mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +03:00
39 lines
839 B
C++
39 lines
839 B
C++
|
|
#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();
|
|
|
|
virtual void CleanUpAfterSentenceProcessing(const InputType& source);
|
|
|
|
// for phrase-based model
|
|
void GetTargetPhraseCollectionBatch(const InputPathList &inputPathQueue) const;
|
|
|
|
// for syntax/hiero model (CKY+ decoding)
|
|
ChartRuleLookupManager* CreateRuleLookupManager(const ChartParser&, const ChartCellCollectionBase&);
|
|
|
|
TO_STRING();
|
|
|
|
|
|
protected:
|
|
mutable std::list<TargetPhraseCollection*> m_allTPColl;
|
|
|
|
TargetPhrase *CreateTargetPhrase(const Phrase &sourcePhrase) const;
|
|
};
|
|
|
|
} // namespace Moses
|