diff --git a/src/training/common/intfeaturedist.cpp b/src/training/common/intfeaturedist.cpp index b519d59b..48e35876 100644 --- a/src/training/common/intfeaturedist.cpp +++ b/src/training/common/intfeaturedist.cpp @@ -97,7 +97,7 @@ double IntFeatureDist::FeatureDistance(const std::vector &features) const { // Compute the distance between the given feature vector and the last // Set feature vector. -double IntFeatureDist::DebugFeatureDistance(const GenericVector &features) const { +double IntFeatureDist::DebugFeatureDistance(const std::vector &features) const { const int num_test_features = features.size(); const double denominator = total_feature_weight_ + num_test_features; double misses = denominator; diff --git a/src/training/common/intfeaturedist.h b/src/training/common/intfeaturedist.h index 29c92722..6f2d340a 100644 --- a/src/training/common/intfeaturedist.h +++ b/src/training/common/intfeaturedist.h @@ -19,7 +19,7 @@ #ifndef TESSERACT_CLASSIFY_INTFEATUREDIST_H_ #define TESSERACT_CLASSIFY_INTFEATUREDIST_H_ -#include "genericvector.h" +#include namespace tesseract { @@ -53,7 +53,7 @@ public: // Compute the distance between the given feature vector and the last // Set feature vector. double FeatureDistance(const std::vector &features) const; - double DebugFeatureDistance(const GenericVector &features) const; + double DebugFeatureDistance(const std::vector &features) const; private: // Clear all data. diff --git a/src/training/common/intfeaturemap.cpp b/src/training/common/intfeaturemap.cpp index d203a6e0..ce6c1e2d 100644 --- a/src/training/common/intfeaturemap.cpp +++ b/src/training/common/intfeaturemap.cpp @@ -133,7 +133,7 @@ int IntFeatureMap::FindNZFeatureMapping(SampleIterator *it) { int total_samples = 0; for (it->Begin(); !it->AtEnd(); it->Next()) { const TrainingSample &sample = it->GetSample(); - GenericVector features; + std::vector features; feature_space_.IndexAndSortFeatures(sample.features(), sample.num_features(), &features); int num_features = features.size(); for (int f = 0; f < num_features; ++f) @@ -164,7 +164,7 @@ int IntFeatureMap::FinalizeMapping(SampleIterator *it) { } // Prints the map features from the set in human-readable form. -void IntFeatureMap::DebugMapFeatures(const GenericVector &map_features) const { +void IntFeatureMap::DebugMapFeatures(const std::vector &map_features) const { for (int i = 0; i < map_features.size(); ++i) { INT_FEATURE_STRUCT f = InverseMapFeature(map_features[i]); f.print(); diff --git a/src/training/common/intfeaturemap.h b/src/training/common/intfeaturemap.h index b66c3575..330d5c2b 100644 --- a/src/training/common/intfeaturemap.h +++ b/src/training/common/intfeaturemap.h @@ -116,7 +116,7 @@ public: } // Prints the map features from the set in human-readable form. - void DebugMapFeatures(const GenericVector &map_features) const; + void DebugMapFeatures(const std::vector &map_features) const; private: void Clear();