Skip to content

Commit d665a6f

Browse files
committed
document labeling autoregressive decoder
1 parent fefd4aa commit d665a6f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

neuralmonkey/decoders/sequence_labeler.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,18 @@
1111

1212

1313
class SequenceLabeler(ModelPart):
14-
"""Classifier assing a label to each encoder's state."""
14+
"""Classifier assigning a label to each input state.
15+
16+
If the labeler output has an input sequence with embeddings, these are used
17+
as additional input to the labeler.
18+
19+
Note that when the labeler is stacked on an autoregressive decoder, it
20+
labels the symbol that is currently generated by the decoder, i.e., the
21+
decoder's state has not yet been updated by putting the decoded symbol on
22+
its input. The label is thus the label of a symbol is generated, not the
23+
one has been already generated and put on decoders input as in case of
24+
standard sequence labeling.
25+
"""
1526

1627
# pylint: disable=too-many-arguments
1728
def __init__(self,

0 commit comments

Comments
 (0)