Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
fix sentence encoder from params (#963)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeNeutoy authored Mar 8, 2018
1 parent 9121eed commit 18eb421
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,11 @@ def from_params(cls, params: Params) -> 'IntraSentenceAttentionEncoder':
similarity_function = SimilarityFunction.from_params(params.pop('similarity_function', {}))
num_attention_heads = params.pop_int('num_attention_heads', 1)
combination = params.pop('combination', '1,2')
output_dim = params.pop_int('output_dim', None)
params.assert_empty(cls.__name__)
return cls(input_dim=input_dim,
projection_dim=projection_dim,
similarity_function=similarity_function,
num_attention_heads=num_attention_heads,
combination=combination)
combination=combination,
output_dim=output_dim)

0 comments on commit 18eb421

Please sign in to comment.