MCPcopy Create free account
hub / github.com/creatale/node-dv / GetSparseClassID

Method GetSparseClassID

deps/tesseract/classify/sampleiterator.cpp:150–152  ·  view source on GitHub ↗

Returns the index of the current sample in sparse charset space, so in a 2-class problem between x and y, the returned indices will all be x or y, where x and y may be unichar_ids (no shape_table_) or shape_ids with a shape_table_.

Source from the content-addressed store, hash-verified

148// x or y, where x and y may be unichar_ids (no shape_table_) or shape_ids
149// with a shape_table_.
150int SampleIterator::GetSparseClassID() const {
151 return shape_table_ != NULL ? shape_index_ : GetSample().class_id();
152}
153
154// Moves on to the next indexable sample. If the end is reached, leaves
155// the state such that AtEnd() is true.

Callers

nothing calls this directly

Calls 1

class_idMethod · 0.80

Tested by

no test coverage detected