From 24ab446d9c1ec07bd03066b9fe7647f787de8621 Mon Sep 17 00:00:00 2001 From: Tong Guo <779222056@qq.com> Date: Tue, 12 Nov 2019 13:16:26 +0800 Subject: [PATCH] Update transR.py --- transR.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/transR.py b/transR.py index 7495242..ca2952e 100755 --- a/transR.py +++ b/transR.py @@ -13,8 +13,9 @@ class Config(object): def __init__(self): - lib.setInPath("./data/FB15K/") - test_lib.setInPath("./data/FB15K/") + path = "./data/FB15K/" + lib.setInPath(path, len(path)) + test_lib.setInPath(path, len(path)) lib.setBernFlag(0) self.learning_rate = 0.0001 self.testFlag = False