0
0
NLPml~5 mins

LSTM for text in NLP - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does LSTM stand for in machine learning?
LSTM stands for Long Short-Term Memory. It is a type of neural network designed to remember information for long periods, especially useful for sequences like text.
Click to reveal answer
intermediate
Why are LSTMs better than simple RNNs for text data?
LSTMs can remember important information over longer sequences and avoid the problem of forgetting early data, which simple RNNs struggle with due to vanishing gradients.
Click to reveal answer
intermediate
Name the three main gates inside an LSTM cell.
The three main gates are: Forget Gate (decides what to forget), Input Gate (decides what new information to add), and Output Gate (decides what to output).
Click to reveal answer
beginner
How does an LSTM process a sentence for text classification?
An LSTM reads the sentence word by word, updating its memory at each step. After the last word, it uses the final hidden state to predict the sentence's category.
Click to reveal answer
beginner
What is a common metric to evaluate LSTM models on text classification tasks?
Accuracy is commonly used to measure how many sentences the LSTM correctly classifies out of all tested sentences.
Click to reveal answer
What problem does an LSTM solve better than a simple RNN?
ARemembering long-term dependencies in sequences
BFaster training on images
CReducing model size
DHandling missing data
Which gate in an LSTM decides what information to forget?
AInput Gate
BForget Gate
COutput Gate
DMemory Gate
In text classification, what does the LSTM use to make the final prediction?
AThe final hidden state after reading the sentence
BThe average of all word embeddings
CThe first word embedding
DThe length of the sentence
Which of these is NOT a typical use of LSTMs?
AText generation
BSpeech recognition
CMachine translation
DImage classification
What is a common input format for LSTM models working on text?
ARaw text strings
BPixel values
COne-hot encoded vectors or word embeddings
DAudio waveforms
Explain how an LSTM processes a sentence step-by-step for text classification.
Think about how the LSTM reads and remembers words in order.
You got /4 concepts.
    Describe the role of the forget, input, and output gates inside an LSTM cell.
    Each gate controls a different part of the memory update.
    You got /3 concepts.