Yelp-Review

Yelp-Review

University

12 Qs

quiz-placeholder

Similar activities

American Sign Language Mastery

American Sign Language Mastery

8th Grade - University

10 Qs

Spotkania biznesowe

Spotkania biznesowe

University

8 Qs

Films/Movies (int)

Films/Movies (int)

6th Grade - Professional Development

11 Qs

An Interview with an Author

An Interview with an Author

University

11 Qs

Les consonnes

Les consonnes

University

10 Qs

It's on us to fix it

It's on us to fix it

University

8 Qs

Part 2 - Listening (4.2)

Part 2 - Listening (4.2)

1st Grade - University

12 Qs

INTERNATIONAL TRADE VOCAB

INTERNATIONAL TRADE VOCAB

University

10 Qs

Yelp-Review

Yelp-Review

Assessment

Quiz

World Languages

University

Easy

Created by

ponrudee netisopakul

Used 1+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of the `Vocabulary` class in the Yelp review classifier?
To manage token-to-index mappings
To vectorize the input reviews
To assign sentiment labels
To clean raw review data

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which special token allows the model to handle unknown words during inference?
<UNK>
<EOS>
<PAD>
<START>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of the `vectorize()` method in the `ReviewVectorizer` class?
To tokenize reviews
To map reviews into collapsed one-hot vectors
To encode labels
To shuffle dataset samples

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of PyTorchโ€™s `DataLoader`?
To transform tensors into strings
To create data splits
To clean the dataset
To create and manage minibatches

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which PyTorch class must be subclassed to define a custom dataset?
ReviewDataset
DataFrame
TensorDataset
Dataset

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which two methods must be implemented when subclassing `Dataset`?
__init__ and __call__
__getitem__ and __len__
__str__ and __repr__
__main__ and __load__

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the `ReviewClassifier` class?
To predict star ratings
To tokenize reviews
To define a perceptron-based classifier
To clean the input reviews

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for World Languages