Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
joshua.decoder.ff.OOVFF Class Reference
Inheritance diagram for joshua.decoder.ff.OOVFF:
[legend]
Collaboration diagram for joshua.decoder.ff.OOVFF:
[legend]

List of all members.

Public Member Functions

 OOVFF (int featureID, double weight, int owner)
double estimateLogP (final Rule rule, int sentID)

Detailed Description

Author:
Matt Post post@.nosp@m.jhu..nosp@m.edu
Version:
$LastChangedDate$

Constructor & Destructor Documentation

joshua.decoder.ff.OOVFF.OOVFF ( int  featureID,
double  weight,
int  owner 
)

Member Function Documentation

double joshua.decoder.ff.OOVFF.estimateLogP ( final Rule  rule,
int  sentID 
)

Each additional word gets a penalty. The more number of words, the more negative. So, to encourage longer sentence, we should have a negative weight on the feature

Here is the call graph for this function: