def return_f1(precision, recall):
	"""
	function that returns F1 score
	given precision and recall
	"""
	if precision!=0 and recall!=0:
		f1 = (2 * precision * recall ) / (precision + recall)
	else:
		f1 = 0
	return f1