A parallel implementation of "graph2vec: Learning Distributed Representations of Graphs" (MLGWorkshop 2017).
GNU General Public License v3.0
901
stars
169
forks
source link
Fix inconsistent and improper path resolution #38
Closed
5teven1in closed 3 years ago
What are the problems?
There are two different ways to generate a name from the path, and they are some issues.
/jsonparser.json
, and the outputs will bejsonparser
andparser
./jjjsonparser.json
, and theidentifier
also outputsparser
.This will assume that
args.input_path
always ends in a slash. Therefore, if the directory name isdataset
, we must enterdataset/
or it will not work.How do I solve them?
Use
basename
,splitext
andjoin
inos.path
to deal with the path properly.Also, I removed the type conversion of
int(identifier)
because we can't be sure it will always be an integer.