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

List of all members.

Public Member Functions

 HyperGraphPruning (boolean fixThreshold, double thresholdGeneral, double thresholdGlue)
void clearState ()
void pruningHG (HyperGraph hg)

Package Attributes

HashMap< HGNode, Boolean > processedNodesTbl = new HashMap<HGNode, Boolean>()
double bestLogProb
boolean ViterbiPruning = false
boolean fixThresholdPruning = true
double THRESHOLD_GENERAL = 10
double THRESHOLD_GLUE = 10
int numSurvivedEdges = 0
int numSurvivedNodes = 0
int glueGrammarOwner = 0

Private Member Functions

void pruningHGHelper (HyperGraph hg)
void pruningNode (HGNode it)
boolean pruningEdge (HyperEdge dt, HGNode parent)
boolean shouldPruneHyperedge (HyperEdge dt, HGNode parent)

Detailed Description

during the pruning process, many Item/Deductions may not be explored at all due to the early-stop in pruning_deduction

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.hypergraph.HyperGraphPruning.HyperGraphPruning ( boolean  fixThreshold,
double  thresholdGeneral,
double  thresholdGlue 
)

Here is the call graph for this function:


Member Function Documentation

Reimplemented from joshua.decoder.hypergraph.DefaultInsideOutside.

Here is the caller graph for this function:

TODO: theoretically, if an item is get called, then its best deduction should always be kept even just by the threshold-checling. In reality, due to precision of Double, the threshold-checking may not be perfect

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

HashMap<HGNode, Boolean> joshua.decoder.hypergraph.HyperGraphPruning.processedNodesTbl = new HashMap<HGNode, Boolean>() [package]