#include <sapt_pscore_length_ratio.h>
Public Member Functions | |
PScoreLengthRatio (std::string const &spec) | |
bool | isIntegerValued (int i) const |
void | operator() (Bitext< Token > const &bt, PhrasePair< Token > &pp, std::vector< float > *dest=NULL) const |
Definition at line 36 of file sapt_pscore_length_ratio.h.
sapt::PScoreLengthRatio< Token >::PScoreLengthRatio | ( | std::string const & | spec | ) | [inline] |
Definition at line 40 of file sapt_pscore_length_ratio.h.
bool sapt::PScoreLengthRatio< Token >::isIntegerValued | ( | int | i | ) | const [inline, virtual] |
Reimplemented from sapt::PhraseScorer< Token >.
Definition at line 47 of file sapt_pscore_length_ratio.h.
void sapt::PScoreLengthRatio< Token >::operator() | ( | Bitext< Token > const & | bt, | |
PhrasePair< Token > & | pp, | |||
std::vector< float > * | dest = NULL | |||
) | const [inline, virtual] |
Implements sapt::PhraseScorer< Token >.
Definition at line 50 of file sapt_pscore_length_ratio.h.
References sapt::PhrasePair< Token >::fvals, len1, len2, sapt::len_from_pid(), sapt::PhrasePair< Token >::p1, sapt::PhrasePair< Token >::p2, sapt::Bitext< TKN >::T1, and sapt::Bitext< TKN >::T2.