|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectse.lth.cs.nlp.nlputils.alignment.Alignment
public class Alignment
Word alignment.
| Constructor Summary | |
|---|---|
Alignment(String initStr)
Constructor from alignment string in the format used by GIZA++. |
|
| Method Summary | |
|---|---|
int[] |
getIndices(int index)
Returns an array of indices that the token at position index is projected to. |
Pair<Integer,Integer> |
maxSpan(int start,
int end)
Finds the maximal span of all projected positions between start and end. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Alignment(String initStr)
initStr - the alignment string.| Method Detail |
|---|
public int[] getIndices(int index)
index is projected to.
index - the position of the token to project.
public Pair<Integer,Integer> maxSpan(int start,
int end)
start and end.
start - the position of the start token.end - the position of the end token.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||