Natural Language Processing with Python Updated EditionChapter 45

Code Implementation

Section 6 of 8-~ 12 min read-Synced from Cuantum content
  1. Which of the following is the correct way to initialize a CountVectorizer in Python?
a) vectorizer = CountVectorizer(input='data')b) vectorizer = CountVectorizer()c) vectorizer = CountVectorizer(mode='text')d) vectorizer = CountVectorizer(transform=True) 
  1. Which method is used to obtain the most similar words to a given word using a GloVe model in Gensim?
  2. a) model.get_similar()

b) model.similarity()

c) model.most_similar()

d) model.find_similar()