#include <WordCoocTable.h>
Public Member Functions | |
WordCoocTable () | |
WordCoocTable (wordID_t const VocabSize1, wordID_t const VocabSize2) | |
uint32_t | GetJoint (size_t const a, size_t const b) const |
uint32_t | GetMarg1 (size_t const x) const |
uint32_t | GetMarg2 (size_t const x) const |
float | pfwd (size_t const a, size_t const b) const |
float | pbwd (size_t const a, size_t const b) const |
void | Count (size_t const a, size_t const b) |
template<typename idvec , typename alnvec > | |
void | Count (idvec const &s1, idvec const &s2, alnvec const &aln, wordID_t const NULL1, wordID_t const NULL2) |
Definition at line 25 of file WordCoocTable.h.
Moses::WordCoocTable::WordCoocTable | ( | ) |
Definition at line 7 of file WordCoocTable.cpp.
Definition at line 15 of file WordCoocTable.cpp.
void Moses::WordCoocTable::Count | ( | idvec const & | s1, | |
idvec const & | s2, | |||
alnvec const & | aln, | |||
wordID_t const | NULL1, | |||
wordID_t const | NULL2 | |||
) | [inline] |
Definition at line 52 of file WordCoocTable.h.
References Count().
void Moses::WordCoocTable::Count | ( | size_t const | a, | |
size_t const | b | |||
) |
Definition at line 21 of file WordCoocTable.cpp.
Referenced by Count().
uint32_t Moses::WordCoocTable::GetJoint | ( | size_t const | a, | |
size_t const | b | |||
) | const |
uint32_t Moses::WordCoocTable::GetMarg1 | ( | size_t const | x | ) | const |
Definition at line 46 of file WordCoocTable.cpp.
Referenced by pfwd().
uint32_t Moses::WordCoocTable::GetMarg2 | ( | size_t const | x | ) | const |
Definition at line 53 of file WordCoocTable.cpp.
Referenced by pbwd().
float Moses::WordCoocTable::pbwd | ( | size_t const | a, | |
size_t const | b | |||
) | const |
Definition at line 67 of file WordCoocTable.cpp.
References GetJoint(), and GetMarg2().
float Moses::WordCoocTable::pfwd | ( | size_t const | a, | |
size_t const | b | |||
) | const |
Definition at line 60 of file WordCoocTable.cpp.
References GetJoint(), and GetMarg1().