def transform(sentences, language): tcnt = 0 for sentence in sentences: for ind in xrange(len(sentence)): word = acs_map(sentence[ind], language) if (word != sentence[ind]): tcnt += 1 sentence[ind] = word print "Total Transformations", language, " Happened is ", str(tcnt) return sentences
def transform(sentences, language): for sentence in sentences: for ind in xrange(len(sentence)): sentence[ind] = acs_map(sentence[ind], language) return sentences