Moses::WordCoocTable Class Reference

#include <WordCoocTable.h>

List of all members.

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)


Detailed Description

Stores word cooccurrence counts
Todo:
ask Uli Germann

Definition at line 25 of file WordCoocTable.h.


Constructor & Destructor Documentation

Moses::WordCoocTable::WordCoocTable (  ) 

Definition at line 7 of file WordCoocTable.cpp.

Moses::WordCoocTable::WordCoocTable ( wordID_t const   VocabSize1,
wordID_t const   VocabSize2 
)

Definition at line 15 of file WordCoocTable.cpp.


Member Function Documentation

template<typename idvec , typename alnvec >
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().

Here is the call graph for this function:

void Moses::WordCoocTable::Count ( size_t const   a,
size_t const   b 
)

Definition at line 21 of file WordCoocTable.cpp.

Referenced by Count().

Here is the caller graph for this function:

uint32_t Moses::WordCoocTable::GetJoint ( size_t const   a,
size_t const   b 
) const

Definition at line 36 of file WordCoocTable.cpp.

References end, and m.

Referenced by pbwd(), and pfwd().

Here is the caller graph for this function:

uint32_t Moses::WordCoocTable::GetMarg1 ( size_t const   x  )  const

Definition at line 46 of file WordCoocTable.cpp.

Referenced by pfwd().

Here is the caller graph for this function:

uint32_t Moses::WordCoocTable::GetMarg2 ( size_t const   x  )  const

Definition at line 53 of file WordCoocTable.cpp.

Referenced by pbwd().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:


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

Generated on Mon Aug 17 00:34:15 2015 for Moses by  doxygen 1.5.9