line1 and line2 are not needed, the alignments and parses are sufficient. Fixed extract_itg/2: unpack results of extract_rules/2