sapt::LexicalPhraseScorer2< TKN > Class Template Reference

#include <ug_lexical_phrase_scorer2.h>

Inheritance diagram for sapt::LexicalPhraseScorer2< TKN >:

Inheritance graph
[legend]
Collaboration diagram for sapt::LexicalPhraseScorer2< TKN >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef mm2dTable< id_type,
id_type, uint32_t, uint32_t > 
table_t

Public Member Functions

void open (std::string const &fname)
template<typename some_int >
void score (TKN const *snt1, size_t const s1, size_t const e1, TKN const *snt2, size_t const s2, size_t const e2, std::vector< some_int > const &aln, float const alpha, float &fwd_score, float &bwd_score) const
void score (TKN const *snt1, size_t const s1, size_t const e1, TKN const *snt2, size_t const s2, size_t const e2, char const *const aln_start, char const *const aln_end, float const alpha, float &fwd_score, float &bwd_score) const
float plup_fwd (id_type const s, id_type const t, float const alpha) const
float plup_bwd (id_type const s, id_type const t, float const alpha) const

Public Attributes

table_t COOC


Detailed Description

template<typename TKN>
class sapt::LexicalPhraseScorer2< TKN >

Definition at line 22 of file ug_lexical_phrase_scorer2.h.


Member Typedef Documentation

template<typename TKN>
typedef mm2dTable<id_type,id_type,uint32_t,uint32_t> sapt::LexicalPhraseScorer2< TKN >::table_t

Definition at line 27 of file ug_lexical_phrase_scorer2.h.


Member Function Documentation

template<typename TKN >
void sapt::LexicalPhraseScorer2< TKN >::open ( std::string const &  fname  )  [inline]

Definition at line 56 of file ug_lexical_phrase_scorer2.h.

References sapt::LexicalPhraseScorer2< TKN >::COOC, and sapt::mm2dTable< OFFSET, ID, VAL, INIT >::open().

Referenced by sapt::PScoreLex1< Token >::load().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename TKN >
float sapt::LexicalPhraseScorer2< TKN >::plup_bwd ( id_type const   s,
id_type const   t,
float const   alpha 
) const [inline]

Definition at line 124 of file ug_lexical_phrase_scorer2.h.

References sapt::LexicalPhraseScorer2< TKN >::COOC, sapt::mm2dTable< OFFSET, ID, VAL, INIT >::m1(), sapt::mm2dTable< OFFSET, ID, VAL, INIT >::m2(), and UTIL_THROW_IF2.

Referenced by sapt::LexicalPhraseScorer2< TKN >::score().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename TKN >
float sapt::LexicalPhraseScorer2< TKN >::plup_fwd ( id_type const   s,
id_type const   t,
float const   alpha 
) const [inline]

Definition at line 101 of file ug_lexical_phrase_scorer2.h.

References sapt::LexicalPhraseScorer2< TKN >::COOC, sapt::mm2dTable< OFFSET, ID, VAL, INIT >::m1(), sapt::mm2dTable< OFFSET, ID, VAL, INIT >::m2(), and UTIL_THROW_IF2.

Referenced by sapt::LexicalPhraseScorer2< TKN >::score().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename TKN>
void sapt::LexicalPhraseScorer2< TKN >::score ( TKN const *  snt1,
size_t const   s1,
size_t const   e1,
TKN const *  snt2,
size_t const   s2,
size_t const   e2,
char const *const   aln_start,
char const *const   aln_end,
float const   alpha,
float &  fwd_score,
float &  bwd_score 
) const [inline]

Definition at line 139 of file ug_lexical_phrase_scorer2.h.

References tpt::binread(), sapt::LexicalPhraseScorer2< TKN >::plup_bwd(), and sapt::LexicalPhraseScorer2< TKN >::plup_fwd().

Here is the call graph for this function:

template<typename TKN>
template<typename some_int >
void sapt::LexicalPhraseScorer2< TKN >::score ( TKN const *  snt1,
size_t const   s1,
size_t const   e1,
TKN const *  snt2,
size_t const   s2,
size_t const   e2,
std::vector< some_int > const &  aln,
float const   alpha,
float &  fwd_score,
float &  bwd_score 
) const [inline]

Definition at line 65 of file ug_lexical_phrase_scorer2.h.

References k, sapt::LexicalPhraseScorer2< TKN >::plup_bwd(), and sapt::LexicalPhraseScorer2< TKN >::plup_fwd().

Referenced by sapt::PScoreLex1< Token >::operator()().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

template<typename TKN>
table_t sapt::LexicalPhraseScorer2< TKN >::COOC


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

Generated on Thu Jul 6 00:34:27 2017 for Moses by  doxygen 1.5.9