Skip to content
This repository has been archived by the owner on Jan 13, 2020. It is now read-only.

Meshde fixes #39

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Helpers/path_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ def get_base_path():
BASE = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
return BASE

def get_sick_path():
def get_sick_cache_path():
BASE = get_base_path()
PATH = os.path.join(BASE,'data/cache/SICK_cache.pkl')
return PATH

def get_sick_path():
BASE = get_base_path()
PATH = os.path.join(BASE, 'data/SICK.txt')
return PATH

def get_babi_ans_extract_path(extension="json"):
BASE = get_base_path()
PATH = os.path.join(BASE, 'data/ans_extraction/babi/{}/'.format(extension))
Expand Down
2 changes: 1 addition & 1 deletion Helpers/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_input_tree():
def get_final_input():
from os import path as path
import pickle as pkl
file_path = path.join(path.dirname(path.dirname(path.realpath(__file__))), 'data/cache/SICK_cache.pkl')
file_path = path_utils.get_sick_cache_path()
dataset_dtree, dataset_dtne = get_final_input_from_path(
file_path,
SICK.get_input_tree
Expand Down
2 changes: 1 addition & 1 deletion data
Submodule data updated from b5bd56 to 61cf1c
1 change: 1 addition & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def test_dt_rnn():
from Helpers import utils

model = DT_RNN(dim=3, word_vector_size=3)
model.theano_build()

np_W_dep = model.W_dep.get_value()
np_W_x = model.W_x.get_value()
Expand Down