import csv


def TsvToData(filePath):
	"""This method reads .tsv file and returns the data, XY split in a tuple"""
	with open(filePath,'r') as file:
		lines=list(csv.reader(file,delimiter='\t'))
		data=[[int(x) for x in line[0].split(',')] for line in lines]
		label=[line[1] for line in lines]
	return(data,label)