mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-18 17:24:28 +08:00
Changes SVT recognition evaluation to be Case Insensitive (according to the standard evaluation protocol). This makes the benchmark obtained mean-f1 score increase from 0.23 to 0.27
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user