def align_texts(source_blocks, target_blocks, params=LanguageIndependent):
 if (len(source_blocks) != len(target_blocks)):
  raise ValueError('Source and target texts do not have the same number of blocks.')
 return [align_blocks(source_block, target_block, params) for (source_block, target_block) in zip(source_blocks, target_blocks)]

def align_texts ( source_blocks , target_blocks , params = LanguageIndependent ) : if ( len ( source_blocks ) != len ( target_blocks ) ) : raise ValueError ( 'Source and target texts do not have the same number of blocks.' ) return [ align_blocks ( source_block , target_block , params ) for ( source_block , target_block ) in zip ( source_blocks , target_blocks ) ]
creates the sentence alignment of two texts .