mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 04:43:03 +03:00
AlignmentInfo ctors should be private
This commit is contained in:
parent
4dd2ec652b
commit
f260c4d231
@ -41,6 +41,7 @@ class AlignmentInfo
|
||||
friend struct AlignmentInfoOrderer;
|
||||
friend struct AlignmentInfoHasher;
|
||||
friend class AlignmentInfoCollection;
|
||||
friend class VW;
|
||||
|
||||
public:
|
||||
typedef std::set<std::pair<size_t,size_t> > CollType;
|
||||
@ -91,14 +92,14 @@ public:
|
||||
m_nonTermIndexMap == rhs.m_nonTermIndexMap;
|
||||
}
|
||||
|
||||
// used only by VW to load word alignment between sentences
|
||||
explicit AlignmentInfo(const std::string &str);
|
||||
|
||||
private:
|
||||
//! AlignmentInfo objects should only be created by an AlignmentInfoCollection
|
||||
explicit AlignmentInfo(const std::set<std::pair<size_t,size_t> > &pairs);
|
||||
explicit AlignmentInfo(const std::vector<unsigned char> &aln);
|
||||
|
||||
// used only by VW to load word alignment between sentences
|
||||
explicit AlignmentInfo(const std::string &str);
|
||||
|
||||
void BuildNonTermIndexMaps();
|
||||
|
||||
CollType m_collection;
|
||||
|
Loading…
Reference in New Issue
Block a user