Răsfoiți Sursa

Merge branch 'master' of dbv.inf-cv.uni-jena.de:nice/nice-semseg into cmake_mergebranch

Johannes Ruehle 11 ani în urmă
părinte
comite
83da641cf7
1 a modificat fișierele cu 6 adăugiri și 1 ștergeri
  1. 6 1
      semseg/SemSegContextTree.cpp

+ 6 - 1
semseg/SemSegContextTree.cpp

@@ -1181,7 +1181,12 @@ void SemSegContextTree::train (const MultiDataset *md)
       }
       }
     }
     }
 
 
-    fasthik->train(globalCategorFeats, ys);
+    //NOTE
+    // Compiler doesn't know how to automatically convert
+    // std::vector<T*> to std::vector<T const*> because the way
+    // the template system works means that in theory the two may
+    // be specialised differently.  This is an explicit conversion.
+    fasthik->train( reinterpret_cast<vector<const NICE::SparseVector *>&>(globalCategorFeats), ys);
     
     
   }
   }