TRF Language Model
trf::CorpusRandSelect Class Reference

#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

CorpusBasem_pCorpus
 
Array< int > m_aRandIdx
 
int m_nCurIdx
 

Detailed Description

Definition at line 80 of file trf-corpus.h.

Constructor & Destructor Documentation

§ CorpusRandSelect() [1/2]

trf::CorpusRandSelect::CorpusRandSelect ( )
inline

Definition at line 88 of file trf-corpus.h.

§ CorpusRandSelect() [2/2]

trf::CorpusRandSelect::CorpusRandSelect ( CorpusBase pCorpus)
inline

Definition at line 89 of file trf-corpus.h.

Member Function Documentation

§ GetIdx()

void trf::CorpusRandSelect::GetIdx ( int *  pIdx,
int  nNum 
)

Get Ranodm Index.

Definition at line 96 of file trf-corpus.cpp.

§ GetSeq()

void trf::CorpusRandSelect::GetSeq ( Array< VocabID > &  aSeq)

Get x.

Definition at line 108 of file trf-corpus.cpp.

§ RandomIdx()

void trf::CorpusRandSelect::RandomIdx ( int  nNum)

Generate the random idx.

Definition at line 86 of file trf-corpus.cpp.

§ Reset()

void trf::CorpusRandSelect::Reset ( CorpusBase p)

Reset the class.

Definition at line 81 of file trf-corpus.cpp.

Member Data Documentation

§ m_aRandIdx

Array<int> trf::CorpusRandSelect::m_aRandIdx
protected

Definition at line 85 of file trf-corpus.h.

§ m_nCurIdx

int trf::CorpusRandSelect::m_nCurIdx
protected

Definition at line 86 of file trf-corpus.h.

§ m_pCorpus

CorpusBase* trf::CorpusRandSelect::m_pCorpus
protected

Definition at line 83 of file trf-corpus.h.


The documentation for this class was generated from the following files: