Natural Language Processing Questions
Natural Language Processing Questions
Reference:- https://towardsdatascience.com/perplexity-intuition-and-derivation-
105dd481c8f3
Q 9 What is Pragmatic Ambiguity in NLP?
Ans- Ambiguity, generally used in natural language processing, can be referred to as the
ability to be understood in more than one way. In simple terms, we can say that ambiguity is
the capability of being understood in more than one way. Natural language is very
ambiguous. NLP has the following types of ambiguities.
1. Lexical Ambiguity
The ambiguity of a single word is called lexical ambiguity. For example, treating the word
silver as a noun, an adjective, or a verb.
2. Syntactic Ambiguity
This kind of ambiguity occurs when a sentence is parsed in different ways. For example, the
sentence “The man saw the girl with the telescope”. It is ambiguous whether the man saw the
girl carrying a telescope or he saw her through his telescope.
3. Semantic Ambiguity
This kind of ambiguity occurs when the meaning of the words themselves can be
misinterpreted. In other words, semantic ambiguity happens when a sentence contains an
ambiguous word or phrase. For example, the sentence “The car hit the pole while it was
moving” is having semantic ambiguity because the interpretations can be “The car, while
moving, hit the pole” and “The car hit the pole while the pole was moving”.
.
4. Anaphoric Ambiguity
This kind of ambiguity arises due to the use of anaphora entities in discourse. For example,
the horse ran up the hill. It was very steep. It soon got tired. Here, the anaphoric reference of
“it” in two situations cause ambiguity.
5.Pragmatic ambiguity
Such kind of ambiguity refers to the situation where the context of a phrase gives it multiple
interpretations. In simple words, we can say that pragmatic ambiguity arises when the
statement is not specific. For example, the sentence “I like you too” can have multiple
interpretations as I like you (just like you like me), I like you (just like someone else does).
Q9. Explain Dependency Parsing.
Ans - Dependency parsing is the task of extracting a dependency parse of a sentence that
represents its grammatical structure and defines the relationships between "head" words and
words, which modify those heads.
Example:
Relations among the words are illustrated above the sentence with directed, labeled arcs from
heads to dependents (+ indicates the dependent).
Refernce:-https://medium.com/@5hirish/dependency-parsing-in-nlp-d7ade014186
Q 10 What is Pragmatic Analysis?
Ans - Pragmatic Analysis is part of the process of extracting information from text.
Specifically, it’s the portion that focuses on taking a structured set of text and figuring out
what the actual meaning was.
Why is this important? Because a lot of text’s meaning does have to do with the context in
which it was said/written. Ambiguity, and limiting ambiguity, are at the core of natural
language processing, so needless to say, pragmatic analysis is actually quite crucial with
respect to extracting meaning or information.
Q11. Explain Masked language modeling?
Ans- Masked language modeling is a fill-in-the-blank task, where a model uses the context
words surrounding a [MASK] token to try to predict what the [MASK] word should be.
The model shown here is BERT, the first large transformer to be trained on this task. Enter
text with one or more "[MASK]" tokens and the model will generate the most likely
substitution for each.