ugdiss::LexicalPhraseScorer1< TKN > Class Template Reference

#include <ug_lexical_phrase_scorer1.h>

List of all members.

Public Member Functions

void open (string const &bname, string const &L1, string const &L2, TokenIndex &V1, TokenIndex &V2)
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< ushort > aln, float &fwd_score, float &bwd_score)
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 &fwd_score, float &bwd_score)
float permissive_lookup (vector< inner_map_t > const &lex, id_type const s, id_type const t) const


Detailed Description

template<typename TKN>
class ugdiss::LexicalPhraseScorer1< TKN >

Definition at line 18 of file ug_lexical_phrase_scorer1.h.


Member Function Documentation

template<typename TKN >
void ugdiss::LexicalPhraseScorer1< TKN >::open ( string const &  bname,
string const &  L1,
string const &  L2,
TokenIndex &  V1,
TokenIndex &  V2 
) [inline]

Definition at line 63 of file ug_lexical_phrase_scorer1.h.

template<typename TKN >
float ugdiss::LexicalPhraseScorer1< TKN >::permissive_lookup ( vector< inner_map_t > const &  lex,
id_type const   s,
id_type const   t 
) const [inline]

Definition at line 112 of file ug_lexical_phrase_scorer1.h.

References m.

Referenced by ugdiss::LexicalPhraseScorer1< TKN >::score().

Here is the caller graph for this function:

template<typename TKN >
void ugdiss::LexicalPhraseScorer1< 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 &  fwd_score,
float &  bwd_score 
) [inline]

Definition at line 123 of file ug_lexical_phrase_scorer1.h.

References tpt::binread(), and ugdiss::LexicalPhraseScorer1< TKN >::permissive_lookup().

Here is the call graph for this function:

template<typename TKN >
void ugdiss::LexicalPhraseScorer1< 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< ushort >  aln,
float &  fwd_score,
float &  bwd_score 
)


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

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