Commit 60f5e5ef authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #327 from lluisgomez:svt_dataset

parents f9dab616 be927d96
......@@ -244,6 +244,8 @@ int main(int argc, char *argv[])
continue;
}
std::transform(words[j].begin(), words[j].end(), words[j].begin(), ::toupper);
if (find(example->lex.begin(), example->lex.end(), words[j]) == example->lex.end())
{
continue;
......@@ -286,18 +288,18 @@ int main(int argc, char *argv[])
f1Each.push_back(f1);
}
/*double p = 1.0*returnedCorrectNum/returnedNum;
double p = 1.0*returnedCorrectNum/returnedNum;
double r = 1.0*returnedCorrectNum/correctNum;
double f1 = 2*(p*r)/(p+r);
printf("f1: %f\n", f1);*/
printf("f1: %f\n", f1);
double f1 = 0.0;
/*double f1 = 0.0;
for (vector<double>::iterator it=f1Each.begin(); it!=f1Each.end(); ++it)
{
f1 += *it;
}
f1 /= f1Each.size();
printf("mean f1: %f\n", f1);
printf("mean f1: %f\n", f1);*/
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment