Skip to content

Commit 1bc0894

Browse files
authored
Fix typo
1 parent f7d7360 commit 1bc0894

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beginner_source/text_sentiment_ngrams_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ def forward(self, text, offsets):
110110

111111
VOCAB_SIZE = len(train_dataset.get_vocab())
112112
EMBED_DIM = 32
113-
NUN_CLASS = len(train_dataset.get_labels())
114-
model = TextSentiment(VOCAB_SIZE, EMBED_DIM, NUN_CLASS).to(device)
113+
NUM_CLASS = len(train_dataset.get_labels())
114+
model = TextSentiment(VOCAB_SIZE, EMBED_DIM, NUM_CLASS).to(device)
115115

116116

117117
######################################################################

0 commit comments

Comments
 (0)