edu.umn.cs.nlp.mt
Class PhrasePair

java.lang.Object
  extended by edu.umn.cs.nlp.mt.PhrasePair
All Implemented Interfaces:
Equatable<PhrasePair>

public class PhrasePair
extends Object
implements Equatable<PhrasePair>

Represents an initial phrase pair in a Chiang (2005) style machine translation system.

Version:
$LastChangedDate: 2007-07-18 13:34:58 -0500 (Wed, 18 Jul 2007) $
Author:
Lane Schwartz
See Also:
"A Hierarchical Phrase-Based Model for Statistical Machine Translation" by David Chiang (ACL, 2005)

Constructor Summary
PhrasePair(int source_start_index, int source_end_index, int target_start_index, int target_end_index)
           
 
Method Summary
 boolean equals(PhrasePair p)
           
 int getSourceEndIndex()
           
 int getSourceStartIndex()
           
 int getTargetEndIndex()
           
 int getTargetStartIndex()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PhrasePair

public PhrasePair(int source_start_index,
                  int source_end_index,
                  int target_start_index,
                  int target_end_index)
Method Detail

equals

public boolean equals(PhrasePair p)
Specified by:
equals in interface Equatable<PhrasePair>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getSourceEndIndex

public int getSourceEndIndex()
Returns:
the source_end_index

getSourceStartIndex

public int getSourceStartIndex()
Returns:
the source_start_index

getTargetEndIndex

public int getTargetEndIndex()
Returns:
the target_end_index

getTargetStartIndex

public int getTargetStartIndex()
Returns:
the target_start_index

toString

public String toString()
Overrides:
toString in class Object