Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
87842db4
"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "48cbea720e85d8d41d4f32b897bd0b9fcb3b7e86"
Unverified
Commit
87842db4
authored
Mar 12, 2020
by
xiang song(charlie.song)
Committed by
GitHub
Mar 12, 2020
Browse files
Fix for dataloader (#1353)
parent
3938b399
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
apps/kg/dataloader/KGDataset.py
apps/kg/dataloader/KGDataset.py
+1
-1
No files found.
apps/kg/dataloader/KGDataset.py
View file @
87842db4
...
@@ -272,7 +272,7 @@ class KGDatasetFreebase(KGDataset):
...
@@ -272,7 +272,7 @@ class KGDatasetFreebase(KGDataset):
n_relations
=
int
(
f_rel
.
readline
()[:
-
1
])
n_relations
=
int
(
f_rel
.
readline
()[:
-
1
])
return
None
,
n_relations
return
None
,
n_relations
def
read_triple
(
self
,
path
,
mode
,
skip_first_line
=
False
):
def
read_triple
(
self
,
path
,
mode
,
skip_first_line
=
False
,
format
=
None
):
heads
=
[]
heads
=
[]
tails
=
[]
tails
=
[]
rels
=
[]
rels
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment