25 ST* s = file->get_map();
26 for (uint64_t i=offs; i<file_length; i++)
74 "supported by StringFileFeatures\n");
80 uint64_t file_size=file->get_size();
84 uint64_t buffer_size=granularity;
101 buffer_size+=granularity;
ST * get_line(uint64_t &len, uint64_t &offs, int32_t &line_nr, uint64_t file_length)
EAlphabet
Alphabet of charfeatures/observations.
virtual ~CStringFileFeatures()
The class Alphabet implements an alphabet and alphabet utility functions.
CMemoryMappedFile< ST > * file
Template class StringFeatures implements a list of strings.
void fetch_meta_info_from_file(int32_t granularity=1048576)
static T max(T a, T b)
return the maximum of two integers
File based string features.
static void resize(T *&data, int64_t old_size, int64_t new_size)
virtual void cleanup_feature_vector(int32_t num)
#define SG_MALLOC(type, len)