if ("AlignmentArray".equals(alignmentsType)) {
alignments = SuffixArrayFactory.createAlignments(trainAlign_fileName, srcSA, tgtSA);
} else if ("AlignmentGrids".equals(alignmentsType) || "AlignmentsGrid".equals(alignmentsType)) {
alignments = new AlignmentGrids(new Scanner(new File(trainAlign_fileName)), srcCorpusArray, tgtCorpusArray, trainingSize, true);
} else if ("MemoryMappedAlignmentGrids".equals(alignmentsType)) {
alignments = new MemoryMappedAlignmentGrids(trainAlign_fileName, srcCorpusArray, tgtCorpusArray);
}
if (!fileExists(alignCache_fileName)) {