
Answer-first summary for fast verification
Answer: Encode all articles into vectors using word2vec, and build a model that returns articles based on vector similarity.
The correct answer is B. Encoding all articles into vectors using word2vec and building a model that returns articles based on vector similarity is the optimal approach for this scenario. This method focuses on the content-based similarity of articles, which aligns with the requirement to suggest articles similar to the one the user is currently reading. Word2vec is effective in capturing semantic relationships between words and articles, allowing the model to recommend articles with similar contexts. Collaborative filtering (Option A) might recommend popular articles but not necessarily similar ones, while Options C and D would be less efficient and scalable for the given task.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your company manages an application that aggregates news articles from many different online sources and sends them to users. The objective is to enhance user engagement by providing personalized article recommendations. Users often want to read articles that are similar to the ones they are currently engaging with. You need to build a recommendation model that will suggest articles to readers that are similar to the articles they are currently reading. Which approach should you use?
A
Create a collaborative filtering system that recommends articles to a user based on the user’s past behavior.
B
Encode all articles into vectors using word2vec, and build a model that returns articles based on vector similarity.
C
Build a logistic regression model for each user that predicts whether an article should be recommended to a user.
D
Manually label a few hundred articles, and then train an SVM classifier based on the manually classified articles that categorizes additional articles into their respective categories.