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

List of all members.

Public Member Functions

 ArityPhrasePenaltyFF (final int featureID, final double weight, final int owner, final int min, final int max)
double estimateLogP (final Rule rule, int sentID)

Static Package Attributes

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

Private Attributes

final int minArity
final int maxArity

Static Private Attributes

static final Logger logger = Logger.getLogger(ArityPhrasePenaltyFF.class.getName())

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.ArityPhrasePenaltyFF.ArityPhrasePenaltyFF ( final int  featureID,
final double  weight,
final int  owner,
final int  min,
final int  max 
)

Member Function Documentation

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

Here is the call graph for this function:


Member Data Documentation

final double joshua.decoder.ff.ArityPhrasePenaltyFF.ALPHA = -Math.log10(Math.E) [static, package]

Estimated log probability value of this feature function when active.

The value of this field should be equal to - Math.log10(Math.E).

This field is package-private to allow access by unit tests for this class.

final Logger joshua.decoder.ff.ArityPhrasePenaltyFF.logger = Logger.getLogger(ArityPhrasePenaltyFF.class.getName()) [static, private]

Logger for this class.