TRF Language Model
|
#include <trf-corpus.h>
Public Member Functions | |
CorpusTxt () | |
CorpusTxt (const char *pfilename) | |
~CorpusTxt () | |
virtual void | Reset (const char *pfilename) |
Open file and Load the file. More... | |
virtual bool | GetSeq (int nLine, Array< VocabID > &aSeq) |
get the sequence in nLine More... | |
virtual void | GetLenCount (Array< int > &aLenCount) |
get the length count More... | |
Public Member Functions inherited from trf::CorpusBase | |
CorpusBase () | |
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 | |
Array< Array< VocabID > * > | m_aSeq |
Protected Attributes inherited from trf::CorpusBase | |
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 60 of file trf-corpus.h.
|
inline |
Definition at line 65 of file trf-corpus.h.
|
inline |
Definition at line 66 of file trf-corpus.h.
trf::CorpusTxt::~CorpusTxt | ( | ) |
Definition at line 22 of file trf-corpus.cpp.
|
virtual |
|
virtual |
Open file and Load the file.
Implements trf::CorpusBase.
Definition at line 29 of file trf-corpus.cpp.
Definition at line 63 of file trf-corpus.h.