HyTE icon indicating copy to clipboard operation
HyTE copied to clipboard

parsing problem

Open EJHyun opened this issue 3 years ago • 1 comments

Hi thanks for the code. But I found some problematic part in your code

in time_proj.py in def load_data() there is this code snippet

with open(self.p.dataset,'r') as filein:
	for line in filein:
		train_triples.append([int(x.strip()) for x in line.split()[0:3]])
		triple_time[count] = [x.split('-')[0] for x in line.split()[3:5]] 
		count+=1

self.p.dataset means the trainset of data. and the line

triple_time[count] = [x.split('-')[0] for x in line.split()[3:5]] 

splits time interval part with '-' but inside YAGO's dataset, there is fact like this image And this fact's start time will be parsed like this image

It seems problematic to me... Isn't it???

EJHyun avatar Jan 17 '22 08:01 EJHyun

I think it is really a problem, I can't understand, too

StarAx0519 avatar Oct 13 '22 02:10 StarAx0519