Learn Before
Concept

RNN's Approach to Sequence Classification in NLP

RNNs can be used to classify entire sequences rather than the tokens within them, known as sequence classification. The final hidden state from the RNN is used as the input to a feedforward network that performs the classification. The output from the softmax output from the feedforward classifier together with a cross-entropy loss drives the end-to-end training.

Instead of using the final hidden state, another option is to create a pooling layer, that takes all the hidden layers together as the representation.

0

1

Updated 2021-11-14

Tags

Data Science

Learn After