Commit 72ea0623 authored by Christopher Shallue's avatar Christopher Shallue
Browse files

Update the encoding instructions

parent b78e63fd
......@@ -398,7 +398,7 @@ import numpy as np
import os.path
import scipy.spatial.distance as sd
from skip_thoughts import configuration
from skip_thoughts import combined_encoder
from skip_thoughts import encoder_manager
In [1]:
# Set paths to the model.
......@@ -415,7 +415,7 @@ In [2]:
# configuration.ModelConfig(bidirectional_encoder=True) and paths to the
# bidirectional model's files. The encoder will use the concatenation of
# all loaded models.
encoder = combined_encoder.CombinedEncoder()
encoder = encoder_manager.EncoderManager()
encoder.load_encoder(configuration.ModelConfig(),
vocabulary_file=VOCAB_FILE,
embedding_matrix_file=EMBEDDING_MATRIX_FILE,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment