|
TRF Language Model
|
#include <trf-corpus.h>
Public Member Functions | |
| CorpusRandSelect () | |
| CorpusRandSelect (CorpusBase *pCorpus) | |
| void | Reset (CorpusBase *p) |
| Reset the class. More... | |
| void | GetSeq (Array< VocabID > &aSeq) |
| Get x. More... | |
| void | GetIdx (int *pIdx, int nNum) |
| Get Ranodm Index. More... | |
| void | RandomIdx (int nNum) |
| Generate the random idx. More... | |
Protected Attributes | |
| CorpusBase * | m_pCorpus |
| Array< int > | m_aRandIdx |
| int | m_nCurIdx |
Definition at line 80 of file trf-corpus.h.
|
inline |
Definition at line 88 of file trf-corpus.h.
|
inline |
Definition at line 89 of file trf-corpus.h.
| void trf::CorpusRandSelect::GetIdx | ( | int * | pIdx, |
| int | nNum | ||
| ) |
Get Ranodm Index.
Definition at line 96 of file trf-corpus.cpp.
Get x.
Definition at line 108 of file trf-corpus.cpp.
| void trf::CorpusRandSelect::RandomIdx | ( | int | nNum | ) |
Generate the random idx.
Definition at line 86 of file trf-corpus.cpp.
| void trf::CorpusRandSelect::Reset | ( | CorpusBase * | p | ) |
Reset the class.
Definition at line 81 of file trf-corpus.cpp.
|
protected |
Definition at line 85 of file trf-corpus.h.
|
protected |
Definition at line 86 of file trf-corpus.h.
|
protected |
Definition at line 83 of file trf-corpus.h.