blob: be027eae06799672b4b93de887664ad0e863abc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#pragma once
#include "PhraseDictionary.h"
namespace Moses
{
class ChartParser;
class ChartCellCollectionBase;
class ChartRuleLookupManager;
class TransliterationPhraseDictionary : public PhraseDictionary
{
friend std::ostream& operator<<(std::ostream&, const TransliterationPhraseDictionary&);
public:
TransliterationPhraseDictionary(const std::string &line);
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;
std::vector<TargetPhrase*> CreateTargetPhrases(const Phrase &sourcePhrase, const std::string &outDir) const;
};
} // namespace Moses
|