TRF Language Model
|
#include <trf-corpus.h>
Public Member Functions | |
CorpusBase () | |
virtual void | Reset (const char *pfilename)=0 |
Open file and Load the file. More... | |
virtual bool | GetSeq (int nLine, Array< VocabID > &aSeq)=0 |
get the sequence in nLine More... | |
virtual void | GetLenCount (Array< int > &aLenCount)=0 |
get the length count More... | |
virtual int | GetNum () const |
get the seq number More... | |
virtual int | GetMinLen () const |
get the min length More... | |
virtual int | GetMaxLen () const |
get the max length More... | |
const char * | GetFileName () const |
get the file name More... | |
Protected Attributes | |
String | m_filename |
int | m_nMinLen |
record the minimum length; More... | |
int | m_nMaxLen |
record the maximum length; More... | |
int | m_nNum |
record the length number; More... | |
Definition at line 28 of file trf-corpus.h.
|
inline |
Definition at line 37 of file trf-corpus.h.
|
inline |
get the file name
Definition at line 53 of file trf-corpus.h.
|
pure virtual |
get the length count
Implemented in trf::CorpusTxt.
|
inlinevirtual |
get the max length
Definition at line 51 of file trf-corpus.h.
|
inlinevirtual |
get the min length
Definition at line 49 of file trf-corpus.h.
|
inlinevirtual |
get the seq number
Definition at line 47 of file trf-corpus.h.
get the sequence in nLine
Implemented in trf::CorpusTxt.
|
pure virtual |
Open file and Load the file.
Implemented in trf::CorpusTxt.
|
protected |
Definition at line 31 of file trf-corpus.h.
|
protected |
record the maximum length;
Definition at line 34 of file trf-corpus.h.
|
protected |
record the minimum length;
Definition at line 33 of file trf-corpus.h.
|
protected |
record the length number;
Definition at line 35 of file trf-corpus.h.