src/classify/trainingsample.cpp
FEATURE_STRUCT *TrainingSample::GetCNFeature() const {
  auto feature = new FEATURE_STRUCT(&CharNormDesc);
  for (int i = 0; i < kNumCNParams; ++i) {
    feature->Params[i] = cn_feature_[i];
  }
  return feature;
}
// Returns the cn_feature as a FEATURE_STRUCT* needed by cntraining.
Returns the cn_feature as a FEATURE_STRUCT* needed by cntraining.
Returns the cn_feature as a FEATURE_STRUCT * needed by cntraining .
FEATURE_STRUCT *TrainingSample::GetCNFeature() const {
  auto feature = new FEATURE_STRUCT(&CharNormDesc);
  for (int i = 0; i < kNumCNParams; ++i) {
    feature->Params[i] = cn_feature_[i];
  }
  return feature;
}
FEATURE_STRUCT * TrainingSample :: GetCNFeature ( ) const { auto feature = new FEATURE_STRUCT ( & CharNormDesc ) ; for ( int i = 0 ; i < kNumCNParams ; ++ i ) { feature -> Params [ i ] = cn_feature_ [ i ] ; } return feature ; }
Returns the cn_feature as a FEATURE_STRUCT* needed by cntraining.
Returns the cn_feature as a FEATURE_STRUCT * needed by cntraining .