SuffixArray sourceSuffixArray =
SuffixArrayFactory.createSuffixArray(sourceCorpusArray, SuffixArray.DEFAULT_CACHE_CAPACITY);
alignments =
SuffixArrayFactory.createAlignments(alignmentFileName, sourceSuffixArray, targetSuffixArray);
} else if (alignmentsType.equals("AlignmentGrids")) {
alignments = new AlignmentGrids(new Scanner(new File(alignmentFileName)), sourceCorpusArray, targetCorpusArray, 3);
} else if (alignmentsType.equals("MemoryMappedAlignmentGrids")) {
AlignmentGrids grids = new AlignmentGrids(new Scanner(new File(alignmentFileName)), sourceCorpusArray, targetCorpusArray, 3);
File mmAlignmentFile = File.createTempFile("memoryMappedAlignment", new Date().toString());
ObjectOutput out = new BinaryOut(mmAlignmentFile);
grids.writeExternal(out);
out.flush();
out.close();
alignments = new MemoryMappedAlignmentGrids(mmAlignmentFile.getAbsolutePath(), sourceCorpusArray, targetCorpusArray);
} else {