Skip to content

parsing problem #14

@EJHyun

Description

@EJHyun

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???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions