TRF Language Model
hrf::Seq Class Reference

#include <hrf-model.h>

Public Member Functions

 Seq ()
 
 Seq (int len, int hlayer, int hnode)
 
 Seq (Seq &seq)
 
void SetLen (int len)
 
int GetLen () const
 
int GetHlayer () const
 
int GetHnode () const
 
VecShell< VocabIDGetWordSeq ()
 
VocabIDwseq ()
 
VocabIDcseq ()
 
void Reset (int len, int hlayer, int hnode)
 
void Copy (Seq &seq)
 
Seq GetSubSeq (int nPos, int nOrder)
 Return the sub-sequence. More...
 
bool operator== (Seq &s)
 If the two sequence is equal. More...
 
void Print ()
 
void Write (File &file)
 

Public Attributes

trf::Seq x
 
Mat< HValueh
 
int m_nLen
 mutiple hidden matrix [position * (layer * hnode)] More...
 
int m_hlayer
 
int m_hnode
 

Detailed Description

Definition at line 40 of file hrf-model.h.

Constructor & Destructor Documentation

§ Seq() [1/3]

hrf::Seq::Seq ( )
inline

Definition at line 50 of file hrf-model.h.

§ Seq() [2/3]

hrf::Seq::Seq ( int  len,
int  hlayer,
int  hnode 
)
inline

Definition at line 51 of file hrf-model.h.

§ Seq() [3/3]

hrf::Seq::Seq ( Seq seq)
inline

Definition at line 52 of file hrf-model.h.

Member Function Documentation

§ Copy()

void hrf::Seq::Copy ( Seq seq)

Definition at line 15 of file hrf-model.cpp.

§ cseq()

VocabID* hrf::Seq::cseq ( )
inline

Definition at line 59 of file hrf-model.h.

§ GetHlayer()

int hrf::Seq::GetHlayer ( ) const
inline

Definition at line 55 of file hrf-model.h.

§ GetHnode()

int hrf::Seq::GetHnode ( ) const
inline

Definition at line 56 of file hrf-model.h.

§ GetLen()

int hrf::Seq::GetLen ( ) const
inline

Definition at line 54 of file hrf-model.h.

§ GetSubSeq()

Seq hrf::Seq::GetSubSeq ( int  nPos,
int  nOrder 
)

Return the sub-sequence.

Definition at line 21 of file hrf-model.cpp.

§ GetWordSeq()

VecShell<VocabID> hrf::Seq::GetWordSeq ( )
inline

Definition at line 57 of file hrf-model.h.

§ operator==()

bool hrf::Seq::operator== ( Seq s)

If the two sequence is equal.

Definition at line 34 of file hrf-model.cpp.

§ Print()

void hrf::Seq::Print ( )

Definition at line 43 of file hrf-model.cpp.

§ Reset()

void hrf::Seq::Reset ( int  len,
int  hlayer,
int  hnode 
)

Definition at line 5 of file hrf-model.cpp.

§ SetLen()

void hrf::Seq::SetLen ( int  len)
inline

Definition at line 53 of file hrf-model.h.

§ Write()

void hrf::Seq::Write ( File file)

Definition at line 53 of file hrf-model.cpp.

§ wseq()

VocabID* hrf::Seq::wseq ( )
inline

Definition at line 58 of file hrf-model.h.

Member Data Documentation

§ h

Mat<HValue> hrf::Seq::h

Definition at line 44 of file hrf-model.h.

§ m_hlayer

int hrf::Seq::m_hlayer

Definition at line 46 of file hrf-model.h.

§ m_hnode

int hrf::Seq::m_hnode

Definition at line 47 of file hrf-model.h.

§ m_nLen

int hrf::Seq::m_nLen

mutiple hidden matrix [position * (layer * hnode)]

current length

Definition at line 45 of file hrf-model.h.

§ x

trf::Seq hrf::Seq::x

Definition at line 43 of file hrf-model.h.


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