Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-12-10 06:17:36 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-12-10 06:17:36 +0300
commit831dc83778f4594375e9de6a4e2831a02b3e1314 (patch)
treefdeb1aa98f940a073d7d5e197ce58b67db0418d1 /moses/ConfusionNet.h
parent240b88c6834c9c94e8a6448a34dc4ad33bdf3fbd (diff)
Code cleanup and refactoring.
Diffstat (limited to 'moses/ConfusionNet.h')
-rw-r--r--moses/ConfusionNet.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/moses/ConfusionNet.h b/moses/ConfusionNet.h
index f298fb18e..f16493b23 100644
--- a/moses/ConfusionNet.h
+++ b/moses/ConfusionNet.h
@@ -30,8 +30,8 @@ protected:
std::vector<Column> data;
NonTerminalSet m_defaultLabelSet;
- bool ReadFormat0(std::istream&,const std::vector<FactorType>& factorOrder);
- bool ReadFormat1(std::istream&,const std::vector<FactorType>& factorOrder);
+ bool ReadFormat0(std::istream&);
+ bool ReadFormat1(std::istream&);
void String2Word(const std::string& s,Word& w,const std::vector<FactorType>& factorOrder);
public:
@@ -46,7 +46,8 @@ public:
const Column& GetColumn(size_t i) const {
UTIL_THROW_IF2(i >= data.size(),
- "Out of bounds. Trying to access " << i << " when vector only contains " << data.size());
+ "Out of bounds. Trying to access " << i
+ << " when vector only contains " << data.size());
return data[i];
}
const Column& operator[](size_t i) const {
@@ -64,11 +65,10 @@ public:
data.clear();
}
- bool ReadF(std::istream&,const std::vector<FactorType>& factorOrder,int format=0);
+ bool ReadF(std::istream&, int format=0);
virtual void Print(std::ostream&) const;
- int Read(std::istream& in,const std::vector<FactorType>& factorOrder,
- AllOptions const& opts);
+ int Read(std::istream& in);
Phrase GetSubString(const Range&) const; //TODO not defined
std::string GetStringRep(const std::vector<FactorType> factorsToPrint) const; //TODO not defined