Search Header Logo

Yelp-Review

Authored by ponrudee netisopakul

World Languages

University

Used 1+ times

Yelp-Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?