From e642eb4b8ef8d82bc08f5af8d4ebe68475929def Mon Sep 17 00:00:00 2001 From: Tong Guo <779222056@qq.com> Date: Tue, 12 Nov 2019 13:15:25 +0800 Subject: [PATCH] Update transE.py --- transE.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/transE.py b/transE.py index 5739049..ad31188 100755 --- a/transE.py +++ b/transE.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.001 self.testFlag = False