|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthultig.align.SWaterman
public final class SWaterman
This class contains an implementation of the Smith Waterman algorithm for locally align sequence pairs. This algorithm have been used for DNA sequence alignment, in genetics, and is here adapted for the alignment of words, between sentence pairs. Another adaptation consists in the capability of output more than one sub-alignment.
University of Beira Interior (UBI)
Centre For Human Language Technology and Bioinformatics (HULTIG)
Constructor Summary | |
---|---|
SWaterman(int[] vs1,
int[] vs2)
JPC - Para vectores representando frases. |
|
SWaterman(int[] vs1,
int[] vs2,
CorpusIndex dict)
JPC - Para vectores representando frases. |
|
SWaterman(int[] vs1,
int[] vs2,
CorpusIndex dict,
int[] vkeyws)
|
|
SWaterman(String str1,
String str2)
|
Method Summary | |
---|---|
Vector<int[][]> |
getAlignementsOLD()
Devolve um vector de sub-alinhamentos. |
Vector<int[][]> |
getAlignments()
Devolve um vector de sub-alinhamentos. |
double |
getAlignmentScore()
Get the alignment score between the two input strings. |
int[][] |
getAlignmentsVect(int i,
int j,
Vector<Integer> va1,
Vector<Integer> va2)
Returns the local alignments ending in the (i, j) cell. |
List |
getMatches()
Return a set of Matches idenfied in Dynamic programming matrix. |
Vector<String[]> |
getParaAlignsHoriz()
Introduced by JPC Modified: 2007/03/16. |
Vector<SimpleChaining.Match> |
getXBestMatches(List matches)
Por JPC 20070317 |
static void |
main(String[] args)
M A I N |
void |
printAlignments()
Output the local alignments with the maximum score. |
void |
printDPMatrix()
print the dynmaic programming matrix |
static void |
printParaAligns(Text txt)
INTRODUZIDO POR JPC OLD METHOD ==> vertical print. |
static void |
printParaAlignsHoriz(int[] v1,
int[] v2,
CorpusIndex dict)
Introduced by JPC |
static void |
printParaAlignsHoriz(Text txt)
Introduced by JPC |
static boolean |
processParaFile(String filename)
INTRODUZIDO POR JPC |
void |
setDictionary(CorpusIndex dictionary)
|
static String |
underscore(int n)
|
static void |
x200607070830()
|
static void |
x200607201745()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SWaterman(String str1, String str2)
public SWaterman(int[] vs1, int[] vs2)
public SWaterman(int[] vs1, int[] vs2, CorpusIndex dict)
public SWaterman(int[] vs1, int[] vs2, CorpusIndex dict, int[] vkeyws)
Method Detail |
---|
public void setDictionary(CorpusIndex dictionary)
public double getAlignmentScore()
public int[][] getAlignmentsVect(int i, int j, Vector<Integer> va1, Vector<Integer> va2)
public Vector<int[][]> getAlignementsOLD()
public Vector<int[][]> getAlignments()
public static String underscore(int n)
public void printAlignments()
public void printDPMatrix()
public List getMatches()
public static void x200607070830()
public static void x200607201745()
public static void printParaAligns(Text txt)
public static void printParaAlignsHoriz(Text txt)
public Vector<String[]> getParaAlignsHoriz()
public static void printParaAlignsHoriz(int[] v1, int[] v2, CorpusIndex dict)
public static boolean processParaFile(String filename)
public Vector<SimpleChaining.Match> getXBestMatches(List matches)
matches
- List
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |