refactor parsing of feature functiona args

This commit is contained in:
Hieu Hoang 2013-06-11 02:54:16 +01:00
parent 983f76b5cb
commit f01ee737b0

View File

@ -79,10 +79,9 @@ FeatureFunction::~FeatureFunction() {}
void FeatureFunction::ParseLine(const std::string& description, const std::string &line)
{
vector<string> toks = Tokenize(line);
set<string> keys;
CHECK(toks.size());
//CHECK(toks[0] == description);
set<string> keys;
for (size_t i = 1; i < toks.size(); ++i) {
vector<string> args = Tokenize(toks[i], "=");