SPRAAK
Data Fields
SprCorpusInfo Struct Reference
+ Collaboration diagram for SprCorpusInfo:

Data Fields

SprStream * fd
 File descriptor of the open corpus file. More...
 
int dim1
 Number of lines in the corpus/segmentation file. More...
 
int dim2
 Number of segments if segmentation file. More...
 
int idim1
 Current line number (not including the header). More...
 
int idim2
 Current segmentation index. More...
 
double fshift
 
const char * entry_fname
 
SprDynStr buf
 
char * field [5]
 
SprCorpusEntry * next_segment
 
SprCorpusEntry entry
 Last returned corpus entry. More...
 

Detailed Description

A corpus struct holds info of an open (for reading) corpus file.

Field Documentation

§ fd

SprStream* SprCorpusInfo::fd

File descriptor of the open corpus file.

§ dim1

int SprCorpusInfo::dim1

Number of lines in the corpus/segmentation file.

§ dim2

int SprCorpusInfo::dim2

Number of segments if segmentation file.

§ idim1

int SprCorpusInfo::idim1

Current line number (not including the header).

§ idim2

int SprCorpusInfo::idim2

Current segmentation index.

§ fshift

double SprCorpusInfo::fshift

The frame shift to use for converting between discrete and continuous time bases.

§ entry_fname

const char* SprCorpusInfo::entry_fname

The entry file name to use if the 1st field of an entry is '-'.

§ buf

SprDynStr SprCorpusInfo::buf

Buffer holding the last line read (before and after tokenizing).

§ field

char* SprCorpusInfo::field[5]

pointer to the first 4 fields and the remainder in the buffer buf; NULL when the fields were not present

§ next_segment

SprCorpusEntry* SprCorpusInfo::next_segment

Buffer pointing to first segment of the next segmentation (or NULL if not available).

§ entry

SprCorpusEntry SprCorpusInfo::entry

Last returned corpus entry.