mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +03:00
refactor parsing of feature functiona args
This commit is contained in:
parent
983f76b5cb
commit
f01ee737b0
@ -79,10 +79,9 @@ FeatureFunction::~FeatureFunction() {}
|
|||||||
void FeatureFunction::ParseLine(const std::string& description, const std::string &line)
|
void FeatureFunction::ParseLine(const std::string& description, const std::string &line)
|
||||||
{
|
{
|
||||||
vector<string> toks = Tokenize(line);
|
vector<string> toks = Tokenize(line);
|
||||||
set<string> keys;
|
|
||||||
|
|
||||||
CHECK(toks.size());
|
CHECK(toks.size());
|
||||||
//CHECK(toks[0] == description);
|
|
||||||
|
set<string> keys;
|
||||||
|
|
||||||
for (size_t i = 1; i < toks.size(); ++i) {
|
for (size_t i = 1; i < toks.size(); ++i) {
|
||||||
vector<string> args = Tokenize(toks[i], "=");
|
vector<string> args = Tokenize(toks[i], "=");
|
||||||
|
Loading…
Reference in New Issue
Block a user