yoneda
4/23/2017 - 9:03 AM

removeMention.py

def removeMention(text):
	startIndex = text.find("@")
	endIndex = 0
	index = startIndex
	while True:
		s = text[index]
		print s
		if s==" ":
			endIndex = index
			break
		index += 1
	cuttingText = text[startIndex:endIndex]
	text = text.replace(cuttingText,"")
	return text