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

List of all members.

Public Member Functions

 DefaultStatelessFF (final double weight, final int owner, int id)
final boolean isStateful ()
final double getWeight ()
final void setWeight (final double weight)
final int getFeatureID ()
final void setFeatureID (final int id)
final int getStateID ()
final void setStateID (final int id)
double transitionLogP (HyperEdge edge, int spanStart, int spanEnd, int sentID)
double transitionLogP (Rule rule, List< HGNode > antNodes, int spanStart, int spanEnd, SourcePath srcPath, int sentID)
final double estimateFutureLogP (Rule rule, DPState curDPState, int sentID)
double finalTransitionLogP (HGNode antNode, int spanStart, int spanEnd, SourcePath srcPath, int sentID)
double finalTransitionLogP (HyperEdge edge, int spanStart, int spanEnd, int sentID)

Protected Attributes

final int owner

Private Attributes

int stateID = -1
double weight = 0.0
int featureID

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.DefaultStatelessFF.DefaultStatelessFF ( final double  weight,
final int  owner,
int  id 
)

Member Function Documentation

final double joshua.decoder.ff.DefaultStatelessFF.estimateFutureLogP ( Rule  rule,
DPState  curDPState,
int  sentID 
)

estimate future logP, e.g., the logPs of partial n-grams asscociated with the left-edge ngram state

Implements joshua.decoder.ff.FeatureFunction.

double joshua.decoder.ff.DefaultStatelessFF.finalTransitionLogP ( HGNode  antNode,
int  spanStart,
int  spanEnd,
SourcePath  srcPath,
int  sentID 
)

Edges calling finalTransition do not have concret rules associated with them.

Implements joshua.decoder.ff.FeatureFunction.

Here is the caller graph for this function:

double joshua.decoder.ff.DefaultStatelessFF.finalTransitionLogP ( HyperEdge  edge,
int  spanStart,
int  spanEnd,
int  sentID 
)

Implements joshua.decoder.ff.FeatureFunction.

Here is the call graph for this function:

final void joshua.decoder.ff.DefaultStatelessFF.setWeight ( final double  weight)
double joshua.decoder.ff.DefaultStatelessFF.transitionLogP ( HyperEdge  edge,
int  spanStart,
int  spanEnd,
int  sentID 
)

Implements joshua.decoder.ff.FeatureFunction.

Here is the call graph for this function:

double joshua.decoder.ff.DefaultStatelessFF.transitionLogP ( Rule  rule,
List< HGNode antNodes,
int  spanStart,
int  spanEnd,
SourcePath  srcPath,
int  sentID 
)

Implements joshua.decoder.ff.FeatureFunction.

Reimplemented in joshua.decoder.ff.SourcePathFF.

Here is the call graph for this function:


Member Data Documentation