fixed bruteforce nn initialization

This commit is contained in:
matlabbe
2015-09-09 15:58:41 -04:00
parent d83b260635
commit e78071b427

View File

@@ -571,7 +571,8 @@ void VWDictionary::update()
else if(_strategy >= kNNBruteForce &&
_notIndexedWords.size() &&
_removedIndexedWords.size() == 0 &&
_visualWords.size())
_visualWords.size() &&
_dataTree.rows)
{
//just add not indexed words
int i = _dataTree.rows;