import re


def preprocess_sentence(sent):
	"""
	Replace links, twitter handles and convert into lowercase.
	"""
	sent = re.sub(r'http\S+', '<url>', sent.lower())
	sent = re.sub(r'@\S+', '<twitter_handle>', sent)
	return sent