mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 21:03:22 +03:00
36 lines
829 B
C++
36 lines
829 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);
|
|
|
|
virtual void CleanUpAfterSentenceProcessing(const InputType& source);
|
|
|
|
// for phrase-based model
|
|
void GetTargetPhraseCollectionBatch(const InputPathList &phraseDictionaryQueue) 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
|