Skip to content

Commit

Permalink
Merge pull request #33 from guotong1988/patch-4
Browse files Browse the repository at this point in the history
For Python3, Update transD.py
  • Loading branch information
THUCSTHanxu13 authored Jul 30, 2020
2 parents 4e89346 + d230b09 commit 6a73a82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions transD.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a73a82

Please sign in to comment.