Search test library by skills or roles
⌘ K

Adaface Sample Natural Language Processing Questions

Here are some sample Natural Language Processing questions from our premium questions library (10273 non-googleable questions).

Skills

🧐 Question

Medium

Sentence probability
N-Grams
Language Models
Solve
Consider the following pseudo code for calculating the probability of a sentence using a bigram language model:
 image
Assume that the bigram and unigram counts are as follows:
            
            bigram_counts = {("i", "like"): 2, ("like", "cats"): 1, ("cats", "too"): 1}
            unigram_counts = {"i": 2, "like": 2, "cats": 2, "too": 1}
            vocabulary_size = 4
            
            What is the probability of the sentence "I like cats too" using the bigram language model?

Easy

Tokenization and Stemming
Stemming
Solve
You are working on a natural language processing project and need to preprocess the text data for further analysis. Your task is to tokenize the text and apply stemming to the tokens. Assuming you have an English text corpus, which of the following combinations of tokenizer and stemmer would most likely result in the best balance between token granularity and generalization?
🧐 Question🔧 Skill

Medium

Sentence probability
N-Grams
Language Models
2 mins
Natural Language Processing
Solve

Easy

Tokenization and Stemming
Stemming
2 mins
Natural Language Processing
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Sentence probability
N-Grams
Language Models
Natural Language Processing
Medium2 mins
Solve
Tokenization and Stemming
Stemming
Natural Language Processing
Easy2 mins
Solve

Adaface questions are trusted by enterprises globally

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte Microsoft NCS Doubtnut Sokrati J&T Express Capegemini

We evaluated several of their competitors and found Adaface to be the most compelling. Great default library of questions that are designed to test for fit rather than memorization of algorithms.


Swayam Narain, CTO, Affable

hashtag image heart icon Swayam
customers across world
Join 1200+ companies in 75+ countries.
Try the most candidate friendly skills assessment tool today.
g2 badges
Ready to streamline your recruitment efforts with Adaface?
Ready to streamline your recruitment efforts with Adaface?
Chat with us
logo
40 min tests.
No trick questions.
Accurate shortlisting.
ada
Ada
● Online
Previous
Score: NA
Next
✖️