def targetword(self, index, targetwords, alignment):
        """Return the aligned targetword for a specified index in the source words"""
        if alignment[index]:
            return targetwords[alignment[index]]
        else:
            return None
def targetword ( self , index , targetwords , alignment ) : if alignment [ index ] : return targetwords [ alignment [ index ] ] else : return None
Return the aligned targetword for a specified index in the source words