public class Alignment
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected double |
score |
| Constructor and Description |
|---|
Alignment(java.util.Map<IndexedWord,IndexedWord> map,
double score,
java.lang.String justification) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Defined on map only.
|
java.lang.String |
getJustification() |
java.util.Map<IndexedWord,IndexedWord> |
getMap() |
double |
getScore() |
int |
hashCode()
Defined on map only.
|
static Alignment |
makeFromIndexArray(SemanticGraph txtGraph,
SemanticGraph hypGraph,
int[] indexes) |
static Alignment |
makeFromIndexArray(SemanticGraph txtGraph,
SemanticGraph hypGraph,
int[] indexes,
double score) |
static Alignment |
makeFromIndexArray(SemanticGraph txtGraph,
SemanticGraph hypGraph,
int[] indexes,
double score,
java.lang.String justification)
Constructs and returns a new Alignment from the given hypothesis
SemanticGraph to the given text (passage) SemanticGraph, using
the given array of indexes. |
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String format) |
public Alignment(java.util.Map<IndexedWord,IndexedWord> map, double score, java.lang.String justification)
public double getScore()
public java.util.Map<IndexedWord,IndexedWord> getMap()
public java.lang.String getJustification()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.lang.String format)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static Alignment makeFromIndexArray(SemanticGraph txtGraph, SemanticGraph hypGraph, int[] indexes, double score, java.lang.String justification)
SemanticGraph to the given text (passage) SemanticGraph, using
the given array of indexes. The i'th node of the array should contain the
index of the node in the text (passage) SemanticGraph to which the i'th
node in the hypothesis SemanticGraph is aligned, or -1 if it is aligned to
NO_WORD.public static Alignment makeFromIndexArray(SemanticGraph txtGraph, SemanticGraph hypGraph, int[] indexes)
public static Alignment makeFromIndexArray(SemanticGraph txtGraph, SemanticGraph hypGraph, int[] indexes, double score)