#include <ug_lexical_phrase_scorer2.h>


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 |
Definition at line 22 of file ug_lexical_phrase_scorer2.h.
| 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.
| 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().


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


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


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

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


| table_t sapt::LexicalPhraseScorer2< TKN >::COOC |
Definition at line 28 of file ug_lexical_phrase_scorer2.h.
Referenced by sapt::LexicalPhraseScorer2< TKN >::open(), sapt::LexicalPhraseScorer2< TKN >::plup_bwd(), and sapt::LexicalPhraseScorer2< TKN >::plup_fwd().
1.5.9