"test/vscode:/vscode.git/clone" did not exist on "a45d9a4ee86153813f7f4ff475ea05b62d87fadc"
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 ...@@ -398,7 +398,7 @@ import numpy as np
import os.path import os.path
import scipy.spatial.distance as sd import scipy.spatial.distance as sd
from skip_thoughts import configuration from skip_thoughts import configuration
from skip_thoughts import combined_encoder from skip_thoughts import encoder_manager
In [1]: In [1]:
# Set paths to the model. # Set paths to the model.
...@@ -415,7 +415,7 @@ In [2]: ...@@ -415,7 +415,7 @@ In [2]:
# configuration.ModelConfig(bidirectional_encoder=True) and paths to the # configuration.ModelConfig(bidirectional_encoder=True) and paths to the
# bidirectional model's files. The encoder will use the concatenation of # bidirectional model's files. The encoder will use the concatenation of
# all loaded models. # all loaded models.
encoder = combined_encoder.CombinedEncoder() encoder = encoder_manager.EncoderManager()
encoder.load_encoder(configuration.ModelConfig(), encoder.load_encoder(configuration.ModelConfig(),
vocabulary_file=VOCAB_FILE, vocabulary_file=VOCAB_FILE,
embedding_matrix_file=EMBEDDING_MATRIX_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