import codecs


def read_dataset(inpath):
	"""
	Reads a generic dataset with rows separated by tabs into a list.

	Args:
		inpath (str): Path to dataset.

	Returns:
		list: List of line contents as tuples.
	"""
	with codecs.open(inpath, 'rb', 'utf-8') as infile:
		return [tuple(line.strip().split('\t')) for line in infile]