Returns the size of the sparse charset space.
| 200 | |
| 201 | // Returns the size of the sparse charset space. |
| 202 | int SampleIterator::SparseCharsetSize() const { |
| 203 | return charset_map_ != NULL |
| 204 | ? charset_map_->SparseSize() |
| 205 | : (shape_table_ != NULL ? shape_table_->NumShapes() |
| 206 | : sample_set_->charsetsize()); |
| 207 | } |
| 208 | |
| 209 | // Apply the supplied feature_space/feature_map transform to all samples |
| 210 | // accessed by this iterator. |