Skip to content

Commit 806f6a2

Browse files
committed
renamed attentive encoder to structured encoder
1 parent bd0402f commit 806f6a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

neuralmonkey/encoders/attentive.py renamed to neuralmonkey/encoders/structured.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
get_attention_states, get_attention_mask, Attendable)
1111

1212

13-
class AttentiveEncoder(ModelPart, TemporalStatefulWithOutput):
13+
class StructuredEncoder(ModelPart, TemporalStatefulWithOutput):
1414
"""An encoder with attention over the input and a fixed-dimension output.
1515
1616
Based on "A Structured Self-attentive Sentence Embedding",

tests/classifier.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ data_id="source"
4646
vocabulary=<encoder_vocabulary>
4747

4848
[encoder_attentive]
49-
class=encoders.attentive.AttentiveEncoder
49+
class=encoders.attentive.StructuredEncoder
5050
name="attentive_encoder"
5151
input_sequence=<encoder_rnn>
5252
hidden_size=9

0 commit comments

Comments
 (0)