* @return alignment list
*/
public List<Alignment> parse() {
List<Alignment> alignmentList = new ArrayList<Alignment>();
Tmx tmx = TmxMarshallerUnmarshaller.getInstance().unmarshal(reader);
Body body = tmx.getBody();
if (sourceLanguageCode == null && targetLanguageCode == null) {
initLanguageCodes(body.getTu());
}
for (Tu tu : body.getTu()) {
List<String> sourceSegmentList =
createSegmentList(tu, sourceLanguageCode);
List<String> targetSegmentList =
createSegmentList(tu, targetLanguageCode);
//Ignore empty alignments