def get_labels(path):
	"""  Get labels from a text file.
	:param path: path to text file
	:return: list of labels
	"""
	with open(path, encoding='utf-8', errors='ignore') as f:
		labels = [line.strip() for line in f.readlines()]
		f.close()
	return labels