1. Experiment -1 MCQ's

  2. 1.Which two libraries are commonly used for Word Analysis in Natural Language Processing?

    • a) TensorFlow and Keras
    • b) NLTK and spaCy
    • c) Pandas and NumPy
    • d) Matplotlib and Seaborn


  3. 2.What is the purpose of the word_tokenize function in NLTK?

    • a) It extracts named entities from the text.
    • b) It converts sentences into words or tokens.
    • c) It identifies Part-of-Speech tags for each word.
    • d) It performs sentiment analysis on the text.


  4. 3.Which library is known for its speed and efficiency in Natural Language Processing?

    • a) TensorFlow
    • b) NLTK
    • c) spaCy
    • d) Gensim


  5. 4.Which command is used to load the English language model in spaCy?

    • a) spacy.load("en_core_web_sm")
    • b) spacy.init("en_core_web_sm")
    • c) load_model("en_core_web_sm")
    • d) initialize_model("en_core_web_sm")


  6. 5.What does the pos_tag function in NLTK do?

    • a) Tokenizes the text into words or phrases.
    • b) Extracts named entities from the text.
    • c) Assigns Part-of-Speech tags to words.
    • d) Performs lemmatization on the text.


  7. 6.Which step is necessary in Google Colab if NLTK is not pre-installed?

    • a) Import nltk using !pip install nltk
    • b) Import spacy using !pip install spacy
    • c) Import word_tokenize using !pip install word_tokenize
    • d) Import nltk using !apt-get install nltk


  8. 7.What does the code snippet tokens = [token.text for token in doc] do in spaCy?

    • a) Generates POS tags for each token in the text.
    • b) Retrieves tokens or words from the processed document.
    • c) Performs sentiment analysis on the text.
    • d) Tokenizes the text using NLTK.


Post a Comment

44 Comments

  1. 21471A4344

    1b) NLTK and spaCy
    2b) It converts sentences into words or tokens.
    3c) spaCy
    4a) spacy.load("en_core_web_sm")
    5c) Assigns Part-of-Speech tags to words.
    6a) Import nltk using !pip install nltk
    7b) Retrieves tokens or words from the processed document.

    ReplyDelete
  2. 1-b
    2-b
    3-c
    4-a
    5-c
    6-a
    7-b

    ReplyDelete
  3. 1-b
    2-b
    3-c
    4-a
    5-c
    6-a
    7-b

    ReplyDelete
  4. 1-b
    2-b
    3-c
    4-a
    5-c
    6-a
    7-b

    ReplyDelete
  5. 21471A4317

    1) b
    2) b
    3) c
    4) a
    5) c
    6) a
    7) b

    ReplyDelete
  6. 21471A4327

    1b) NLTK and spaCy
    2b) It converts sentences into words or tokens.
    3c) spaCy
    4a) spacy.load("en_core_web_sm")
    5c) Assigns Part-of-Speech tags to words.
    6a) Import nltk using !pip install nltk
    7b) Retrieves tokens or words from the processed document.

    ReplyDelete
  7. 21471A4322
    1:-B
    2:-B
    3:-C
    4:-A
    5:-C
    6:-A
    7:-B

    ReplyDelete
  8. 21471A4339

    1)b
    2)b
    3)c
    4)a
    5)c
    6)a
    7)b

    ReplyDelete
  9. 21471A4350
    1.b
    2.b
    3.c
    4.a
    5.c
    6.a
    7.b

    ReplyDelete
  10. 1-b
    2-b
    3c
    4-a
    5-c
    6-a
    7-b

    ReplyDelete
  11. 21471A4347

    1b) NLTK and spaCy
    2b) It converts sentences into words or tokens.
    3c) spaCy
    4a) spacy.load("en_core_web_sm")
    5c) Assigns Part-of-Speech tags to words.
    6a) Import nltk using !pip install nltk
    7b) Retrieves tokens or words from the processed document.

    ReplyDelete
  12. 21471A4329
    1)b
    2)b
    3)c
    4)a
    5)c
    6)a
    7)b

    ReplyDelete
  13. 21471A4342
    1)b
    2)b
    3)c
    4)a
    5)c
    6)a
    7)b

    ReplyDelete
  14. 1) b
    2) b
    3) c
    4) a
    5) c
    6) a
    7) b

    ReplyDelete
  15. 21471A4307
    1)b
    2)b
    3)c
    4)a
    5)c
    6)a
    7)b

    ReplyDelete
  16. 21471A4326
    1)B
    2)B
    3)C
    4)A
    5)C
    6)A
    7)B


    ReplyDelete
  17. 1-b
    2-b
    3-c
    4-a
    5-c
    6-a
    7-b

    ReplyDelete
  18. 21471A4346
    1)b
    2)b
    3)c
    4)a
    5)c
    6)a
    7)b

    ReplyDelete
  19. 21471A4324

    1b) NLTK and spaCy
    2b) It converts sentences into words or tokens.
    3c) spaCy
    4a) spacy.load("en_core_web_sm")
    5c) Assigns Part-of-Speech tags to words.
    6a) Import nltk using !pip install nltk
    7b) Retrieves tokens or words from the processed document.

    ReplyDelete
  20. 21471A4341
    1)B
    2)B
    3)C
    4)A
    5)C
    6)A
    7)B

    ReplyDelete
  21. 21471A4358
    1.b
    2.b
    3.c
    4.a
    5.c
    6.a
    7.b

    ReplyDelete


  22. 1b) NLTK and spaCy
    2b) It converts sentences into words or tokens.
    3c) spaCy
    4a) spacy.load("en_core_web_sm")
    5c) Assigns Part-of-Speech tags to words.
    6a) Import nltk using !pip install nltk
    7b) Retrieves tokens or words from the processed document.

    ReplyDelete
  23. 21471A4306

    1b) NLTK and spaCy
    2b) It converts sentences into words or tokens.
    3c) spaCy
    4a) spacy.load("en_core_web_sm")
    5c) Assigns Part-of-Speech tags to words.
    6a) Import nltk using !pip install nltk
    7b) Retrieves tokens or words from the processed document.

    ReplyDelete
  24. 21471A4319
    1.b) NLTK and spaCy
    2.b) It converts sentences into words or tokens.
    3.c) spaCy
    4.a) spacy.load("en_core_web_sm")
    5.c) Assigns Part-of-Speech tags to words.
    6.a) Import nltk using !pip install nltk
    7.b) Retrieves tokens or words from the processed document.

    ReplyDelete
  25. 21471A4321
    1-b
    2-b
    3-c
    4-a
    5-c
    6-a
    7-b

    ReplyDelete
  26. 21471A4361

    1b) NLTK and spaCy
    2b) It converts sentences into words or tokens.
    3c) spaCy
    4a) spacy.load("en_core_web_sm")
    5c) Assigns Part-of-Speech tags to words.
    6a) Import nltk using !pip install nltk
    7b) Retrieves tokens or words from the processed document.

    ReplyDelete
  27. 21471A4349
    1b) NLTK and spaCy
    2b) It converts sentences into words or tokens.
    3c) spaCy
    4a) spacy.load("en_core_web_sm")
    5c) Assigns Part-of-Speech tags to words.
    6a) Import nltk using !pip install nltk
    7b) Retrieves tokens or words from the processed document

    ReplyDelete
  28. 1b) NLTK and spaCy
    2b) It converts sentences into words or tokens.
    3c) spaCy
    4a) spacy.load("en_core_web_sm")
    5c) Assigns Part-of-Speech tags to words.
    6a) Import nltk using !pip install nltk
    7b) Retrieves tokens or words from the processed document

    ReplyDelete
  29. 21471A4352

    1)b
    2)b
    3)c
    4)a
    5)c
    6)a
    7)b

    ReplyDelete
  30. 21471A4332

    1b) NLTK and spaCy
    2b) It converts sentences into words or tokens.
    3c) spaCy
    4a) spacy.load("en_core_web_sm")
    5c) Assigns Part-of-Speech tags to words.
    6a) Import nltk using !pip install nltk
    7b) Retrieves tokens or words from the processed document.

    ReplyDelete
  31. 21471A4365
    1b) NLTK and spaCy
    2b) It converts sentences into words or tokens.
    3c) spaCy
    4a) spacy.load("en_core_web_sm")
    5c) Assigns Part-of-Speech tags to words.
    6a) Import nltk using !pip install nltk
    7b) Retrieves tokens or words from the processed document

    ReplyDelete
  32. BHARGAV RAGHURAM(21471A4302)November 28, 2023 at 2:30 AM

    1-b
    2-b
    3-c
    4-a
    5-c
    6-a
    7-b

    ReplyDelete
  33. GOPI KRISHNA(21471A4320)November 28, 2023 at 2:31 AM

    1-b
    2-b
    3-c
    4-a
    5-c
    6-a
    7-b

    ReplyDelete
  34. 1-b
    2-b
    3-c
    4-a
    5-c
    6-a
    7-b

    ReplyDelete
  35. 1-b
    2-b
    3-c
    4-a
    5-c
    6-a
    7-b

    ReplyDelete
  36. 21471A4328

    1-b
    2-b
    3-c
    4-a
    5-c
    6-a
    7-b

    ReplyDelete
  37. 1-B
    2-B
    3-C
    4-A
    5-C
    6-A
    7-B

    ReplyDelete
  38. 1 b
    2 b
    3 c
    4 a
    5 c
    6 a
    7 b

    ReplyDelete
  39. 21471A4331
    1.b
    2.b
    3.c
    4.a
    5.c
    6.a
    7.b

    ReplyDelete
  40. 21471A4316

    1-b [ NLTK and spaCy]
    2-b [ it converts sentences into words or tokens.
    3-c[ spaCy]
    4-a [spaCy.load('en_core_web_sm')
    5-c [ Assign part of speech tags to words]
    6-a [ import nltk using !pip install nltk ]
    7-b [ retrieves tokens or words from the processed document ]

    ReplyDelete