|
TRF Language Model
|
#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< VocabID > | GetWordSeq () |
| VocabID * | wseq () |
| VocabID * | cseq () |
| 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< HValue > | h |
| int | m_nLen |
| mutiple hidden matrix [position * (layer * hnode)] More... | |
| int | m_hlayer |
| int | m_hnode |
Definition at line 40 of file hrf-model.h.
|
inline |
Definition at line 50 of file hrf-model.h.
|
inline |
Definition at line 51 of file hrf-model.h.
|
inline |
Definition at line 52 of file hrf-model.h.
| void hrf::Seq::Copy | ( | Seq & | seq | ) |
Definition at line 15 of file hrf-model.cpp.
|
inline |
Definition at line 59 of file hrf-model.h.
|
inline |
Definition at line 55 of file hrf-model.h.
|
inline |
Definition at line 56 of file hrf-model.h.
|
inline |
Definition at line 54 of file hrf-model.h.
| Seq hrf::Seq::GetSubSeq | ( | int | nPos, |
| int | nOrder | ||
| ) |
Return the sub-sequence.
Definition at line 21 of file hrf-model.cpp.
Definition at line 57 of file hrf-model.h.
| bool hrf::Seq::operator== | ( | Seq & | s | ) |
If the two sequence is equal.
Definition at line 34 of file hrf-model.cpp.
| void hrf::Seq::Print | ( | ) |
Definition at line 43 of file hrf-model.cpp.
| void hrf::Seq::Reset | ( | int | len, |
| int | hlayer, | ||
| int | hnode | ||
| ) |
Definition at line 5 of file hrf-model.cpp.
|
inline |
Definition at line 53 of file hrf-model.h.
| void hrf::Seq::Write | ( | File & | file | ) |
Definition at line 53 of file hrf-model.cpp.
|
inline |
Definition at line 58 of file hrf-model.h.
Definition at line 44 of file hrf-model.h.
| int hrf::Seq::m_hlayer |
Definition at line 46 of file hrf-model.h.
| int hrf::Seq::m_hnode |
Definition at line 47 of file hrf-model.h.
| int hrf::Seq::m_nLen |
mutiple hidden matrix [position * (layer * hnode)]
current length
Definition at line 45 of file hrf-model.h.
| trf::Seq hrf::Seq::x |
Definition at line 43 of file hrf-model.h.