Skip to content
Snippets Groups Projects
Commit fb37b7a7 authored by Franck Dary's avatar Franck Dary
Browse files

unknownValue threshold is now inclusive

parent 26cc83e4
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ std::vector<std::vector<long>> CNNNetworkImpl::extractContext(Config & config, D
if (is_training())
if (col == "FORM" || col == "LEMMA")
if (dict.getNbOccs(dictIndex) < unknownValueThreshold)
if (dict.getNbOccs(dictIndex) <= unknownValueThreshold)
{
context.emplace_back(context.back());
context.back().back() = dict.getIndexOrInsert(Dict::unknownValueStr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment