def tokenize (text):
	""" Tokenizes a text sample.
	Args:
		text (str): The text sample
	Returns:
		list of str: A list of tokens
	"""
	replacements = ["\r", "\n", "\t"]
	output = text
	for replacement in replacements:
		output = output.replace(replacement, " ") # Convert whitespace to spaces only.
	return list(filter(lambda s: len(s) > 0, output.split(" ")))