Search Header Logo

NLP Quiz 1 Exam

Authored by mohamed .m

Professional Development

2nd Grade

Used 1+ times

NLP Quiz 1 Exam
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

what is the output of following code?

from nltk.tokenize import word_tokenize

text = "God is Great! I won a lottery."

print(word_tokenize(text))

['God', 'is', 'Great', '!', 'I', 'won', 'a']

['God', 'is', 'Great', '!', 'I', 'won', 'a', 'lottery']

['God', 'is', 'Great', '!', 'I', 'won']

['God', 'is', 'Great']

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the following which is not belongs to stemmer component

PasterStemmer

PorterStemmer

SnowballStemmer

LancasterStemmer

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

what is the output of the following stemming process.

from nltk.stem import  PorterStemmer

porter = PorterStemmer()

words = ['generous','generously']

for word in words:

    print(word,"--->",porter.stem(word))

generous ---> genero

generously ---> gener

generous ---> gener

generously ---> gener

generous ---> gener

generously ---> genero

generous ---> generou

generously ---> generrou

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

what is the output of the following code?

pragraph='this is the simple example quiz. but this is useful for examination'

sentences = nltk.sent_tokenize(paragraph)

print(sentences)

['this is the simple example quiz','but this is useful for examination']

['this', 'is the simple', 'example quiz','but', 'this is useful for examination']

['this', 'is the simple', 'example quiz','but']

[]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which is not belongs to tag data set?

Penn TreeBank

Universal

Brown

White

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

what is the pos tags for the following sentence?

cat is running

NN,AUX,VERB

AUX,NN,VERB

DET,NN,VERB

None of these

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

which are not belongs to Tagger class?

N gram Tagger

Brill Tagger

Grill Tagger

Custom Tagger

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?