Skip to content

Commit

Permalink
Merge branch 'master' into interactive_NMT
Browse files Browse the repository at this point in the history
# Conflicts:
#	model_zoo.py
  • Loading branch information
lvapeab committed Apr 20, 2017
2 parents d1b8c97 + e615382 commit 8c2cd97
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 367 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def train_model(params):

# Build model
if params['RELOAD'] == 0: # build new model
nmt_model = TranslationModel(params, type=params['MODEL_TYPE'], verbose=params['VERBOSE'],
nmt_model = TranslationModel(params, model_type=params['MODEL_TYPE'], verbose=params['VERBOSE'],
model_name=params['MODEL_NAME'], vocabularies=dataset.vocabulary,
store_path=params['STORE_PATH'])
dict2pkl(params, params['STORE_PATH'] + '/config')
Expand All @@ -86,7 +86,7 @@ def train_model(params):

else: # resume from previously trained model
nmt_model = TranslationModel(params,
type=params['MODEL_TYPE'],
model_type=params['MODEL_TYPE'],
verbose=params['VERBOSE'],
model_name=params['MODEL_NAME'],
vocabularies=dataset.vocabulary,
Expand Down
Loading

0 comments on commit 8c2cd97

Please sign in to comment.