mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 14:05:29 +03:00
tell create-ini what factors are being used
This commit is contained in:
parent
e04296b22e
commit
e89d1ddbf1
@ -14,7 +14,7 @@ protected:
|
||||
|
||||
public:
|
||||
std::vector<std::string> toks;
|
||||
std::vector<int> inFactors, outFactors;
|
||||
Factors inFactors, outFactors;
|
||||
std::string name;
|
||||
std::string path;
|
||||
int index, numFeatures;
|
||||
|
@ -94,8 +94,8 @@ void ParseFactorsPair(const string &line, vector< pair<Factors, Factors> > &ret)
|
||||
assert(toks.size() == 2);
|
||||
|
||||
Factors input, output;
|
||||
input = Tokenize<size_t>(toks[0], ",");
|
||||
output = Tokenize<size_t>(toks[1], ",");
|
||||
input = Tokenize<int>(toks[0], ",");
|
||||
output = Tokenize<int>(toks[1], ",");
|
||||
|
||||
ret.push_back(pair<Factors, Factors>(input, output) );
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <vector>
|
||||
#include <sstream>
|
||||
|
||||
typedef std::vector<size_t> Factors;
|
||||
typedef std::vector<int> Factors;
|
||||
|
||||
template<typename T>
|
||||
inline T Scan(const std::string &input)
|
||||
|
Loading…
Reference in New Issue
Block a user