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

List of all members.

Public Member Functions

 HGNode (int i, int j, int lhs, TreeMap< Integer, DPState > dpStates, HyperEdge initHyperedge, double estTotalLogP)
 HGNode (int i, int j, int lhs, List< HyperEdge > hyperedges, HyperEdge bestHyperedge, TreeMap< Integer, DPState > states)
void addHyperedgeInNode (HyperEdge dt)
void semiringPlus (HyperEdge dt)
void addHyperedgesInNode (List< HyperEdge > hyperedges)
TreeMap< Integer, DPStategetDPStates ()
DPState getDPState (int stateID)
void printInfo (Level level)
String getSignature ()
void releaseDPStatesMemory ()
double getEstTotalLogP ()
int compareTo (HGNode anotherItem)
boolean isDead ()
double getPruneLogP ()
void setDead ()
void setPruneLogP (double estTotalLogP)
List< HyperEdgegetHyperEdges ()

Public Attributes

int i
int lhs
List< HyperEdgehyperedges = null
HyperEdge bestHyperedge = null
boolean isDead = false

Static Public Attributes

static Comparator< HGNodeinverseLogPComparator
static Comparator< HGNodelogPComparator

Package Attributes

int j
TreeMap< Integer, DPStatedpStates

Private Attributes

String signature = null
double estTotalLogP = 0.0

Static Private Attributes

static final String STATE_SIG_SEP = " -f- "

Detailed Description

this class implement Hypergraph node (i.e., HGNode); also known as Item in parsing.

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.HGNode.HGNode ( int  i,
int  j,
int  lhs,
TreeMap< Integer, DPState dpStates,
HyperEdge  initHyperedge,
double  estTotalLogP 
)

Here is the call graph for this function:

joshua.decoder.hypergraph.HGNode.HGNode ( int  i,
int  j,
int  lhs,
List< HyperEdge hyperedges,
HyperEdge  bestHyperedge,
TreeMap< Integer, DPState states 
)

Member Function Documentation

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 caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

void joshua.decoder.hypergraph.HGNode.setPruneLogP ( double  estTotalLogP)

Member Data Documentation

Initial value:
 new Comparator<HGNode>() {
    public int compare(HGNode item1, HGNode item2) {
      double logp1 = item1.estTotalLogP;
      double logp2 = item2.estTotalLogP;
      if (logp1 > logp2) {
        return -1;
      } else if (logp1 == logp2) {
        return 0;
      } else {
        return 1;
      }
    }
  }
Initial value:
 new Comparator<HGNode>() {
    public int compare(HGNode item1, HGNode item2) {
      double logp1 = item1.estTotalLogP;
      double logp2 = item2.estTotalLogP;
      if (logp1 > logp2) {
        return 1;
      } else if (logp1 == logp2) {
        return 0;
      } else {
        return -1;
      }
    }
  }

natural order

final String joshua.decoder.hypergraph.HGNode.STATE_SIG_SEP = " -f- " [static, private]