nltk.IBMModel5.prune

IBMModel5.prune(alignment_infos)[source]

Removes alignments from alignment_infos that have substantially lower Model 4 scores than the best alignment

Returns:Pruned alignments
Return type:set(AlignmentInfo)