def index_doc(doc_id, text): sentences = sent_tokenize(text) for i, sent in enumerate(sentences): tokens = [t.lower() for t in word_tokenize(sent) if re.match(r"\w", t)] for pos, token in enumerate(tokens): index[token].append("doc": doc_id, "sent_idx": i, "pos": pos, "snippet": sent)
Many critics considered this one of Saif Ali Khan's best performances, highlighting his comedic timing and versatility. index of kaalakaandi