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

List of all members.

Public Member Functions

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

Static Private Attributes

static final double OMEGA = -Math.log10(Math.E)

Detailed Description

Author:
Zhifei Li, zhife.nosp@m.i.wo.nosp@m.rk@gm.nosp@m.ail..nosp@m.com
Version:
$LastChangedDate$

Constructor & Destructor Documentation

joshua.decoder.ff.WordPenaltyFF.WordPenaltyFF ( int  featureID,
double  weight 
)

Member Function Documentation

double joshua.decoder.ff.WordPenaltyFF.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:


Member Data Documentation

final double joshua.decoder.ff.WordPenaltyFF.OMEGA = -Math.log10(Math.E) [static, private]