0% found this document useful (0 votes)
14 views5 pages

NLP

The document covers various aspects of natural language processing (NLP), including definitions and explanations of semantic analysis, grammar types, coreference, and word sense disambiguation. It details syntactic and semantic constraints on coreference, the importance of grammar in NLP, and the challenges of word sense disambiguation in applications like machine translation and information retrieval. Additionally, it discusses different types of grammar, such as context-free, constituency, and dependency grammar.

Uploaded by

appleteamcook
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views5 pages

NLP

The document covers various aspects of natural language processing (NLP), including definitions and explanations of semantic analysis, grammar types, coreference, and word sense disambiguation. It details syntactic and semantic constraints on coreference, the importance of grammar in NLP, and the challenges of word sense disambiguation in applications like machine translation and information retrieval. Additionally, it discusses different types of grammar, such as context-free, constituency, and dependency grammar.

Uploaded by

appleteamcook
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1.

Define semantic analysis


2. Elements of lexical semantic analysis
3. Types of Anaphors
4. Types of referring expressions
5. Applications of Wordsense disambiguation
6. Differentiation between data retrieval and information retrieval
7. What is Homonymy ?
8. Difficulties or challenges in POS tagging
9. Define text summarisation

10. Explain in detail grammar and its type


11. Explain in detail Wordsense disambiguation
12. Explain in detail anaphora using hobbes and centric algorithm
13. Explain syntactic and semantic constant on coreference
14. Explain Discourse reference resolution

15. Types of machine translation


[Link] syntactic and semantic constant on coreference
Coreference means when two or more expressions refer to the same entity in a sentence or text.
Example:
Sahil went to the lab because he forgot his notebook.
Here, Sahil and he refer to the same person → they are coreferent.
1. Syntactic Constraints on Coreference
These are grammar-based rules that determine whether two noun phrases can or cannot refer to the
same entity, based on their syntactic (structural) relationship in a sentence.
Simple Rules:
1. Reflexive rule:
Reflexive pronouns (himself, herself, themselves) must refer to someone in the same sentence.

Sahil hurt himself.


Sahil said Rohan hurt himself. (→ himself = Rohan)
2. Pronoun rule:
A normal pronoun (he, she, they) usually can’t refer to another noun in the same clause.

Sahil likes him. (him = Sahil not allowed)


3. Name rule:
A pronoun cannot come before its name referent.

He likes Sahil. (he = Sahil)

In NLP:
Coreference models first use syntactic parsers to check these grammatical rules before linking pronouns
and nouns.

2. Semantic Constraints on Coreference


These depend on meaning rather than grammatical structure.
Even if syntax allows coreference, semantics may prevent it if meaning or world knowledge conflicts.
Simple Rules:
1. Gender & number must match:

Sahil said she is late.


Sahil said he is late.
2. Animate vs. inanimate:

The table said it was hungry. (table can’t be hungry)


The dog said it was hungry.
3. Real-world sense:
The policeman arrested the thief because he was guilty. → he = thief (makes sense)
The policeman arrested the thief because he was brave. → he = policeman

In NLP:
Semantic constraints come from word meaning, context, and world knowledge.
Modern models (like BERT, GPT, or CorefBERT) use these to decide which meaning fits best.
Grammar in NLP

1. Meaning
• Grammar is a set of rules that describe how words combine to form valid sentences in a language.
• In Natural Language Processing (NLP), grammar helps computers understand the structure and meaning of
sentences.
• It defines how words relate to each other — subject, object, verb, etc.

2. Purpose of Grammar in NLP


• To analyze sentence structure (syntax analysis or parsing).
• To detect errors and ensure sentence correctness.
• To extract relations between words for understanding meaning.
• Used in tasks like machine translation, speech recognition, question answering, etc.

3. Components of Grammar
1. Lexicon: List of words and their categories (noun, verb, adjective, etc.)
2. Syntax rules: Define how words combine to form phrases and sentences.
3. Semantics: Deals with meaning derived from sentence structure.

Context free Grammer


A context-free grammar (CFG) is a set of production rules used to generate all the possible sentences in a given
language
Each rule has a single non-terminal on the left side.
A GFG (or just a grammar) G is a tuple G = (V, T, P, S)
Constituency Grammar
Constituency Grammar is also known as Phrase structure grammar
Represents sentences in terms of phrases
Constituency grammar can organize any sentence into its three constituents - a subject, a context, and an object
• The sentence is divided into two main constituents: NP (noun phrase) and VP (verb phrase).
• The NP is further broken down into Det (determiner) and Noun, and the VP is further broken down into V
(verb) and NP.
Dependency Grammer
Dependency Grammar is the opposite of constituency grammar and is based on the dependency relation.
• The verb is considered the center of the clause structure.

• Every other syntactic unit is connected to the verb in terms of a directed [Link] syntactic units are called
dependencies.
• One of the words in a sentence behaves as a root, and all the other words except that word itself are linked
directly or indirectly with the root using their dependencies
Example: In The boy plays football
• plays is the head
• boy (subject) and football (object) depend on plays
Word Sense Disambiguation (WSD) is the process of determining which meaning of a word is intended in a
particular context.
WSD is important in many natural language processing (NLP) applications because if word meanings are
misidentified, the results can be problematic:
• Machine translation systems may produce incorrect translations due to misinterpretation of word
meanings.
• Information retrieval systems might return irrelevant results because of semantic uncertainty or
confusion.
• Question-answering systems require precise word meanings to provide accurate and relevant
answers.
1. Knowledge-Based Methods
Knowledge-based approaches utilize lexical resources such as dictionaries and semantic networks to
determine word meanings. The Lesk algorithm works over this approach.
• Compare context words with dictionary definitions of candidate senses
• Calculate overlap between contextual words and definitional content
• Select the sense with maximum overlap score
Advantages:
• Does not require annotated training data

Common questions

Powered by AI

Syntactic constraints on coreference focus on grammar-based rules that determine if two noun phrases can refer to the same entity based on their structural relationship. For example, reflexive pronouns must refer within the same sentence, and pronouns generally shouldn't refer to another noun in the same clause without clear antecedents. Semantic constraints emphasize meaning, requiring gender and number agreement or realistic world knowledge, such as animate versus inanimate distinctions, to evaluate if meanings or references are coherent. While syntactic parsers apply these constraints by rules, modern NLP models use semantic constraints from context and knowledge to determine the best fit, surpassing mere syntactic matching .

Knowledge-based WSD methods rely on lexical resources like dictionaries or semantic networks. An example is the Lesk algorithm, which compares the context of words with dictionary definitions to find overlaps, choosing the meaning with the highest overlap. The advantage is that this approach doesn't require annotated training data, making it accessible for different applications. However, its limitations include potentially missing contextual nuances and dependency on the quality and completeness of lexical resources, which can be a significant constraint .

Context-free grammar (CFG) organizes sentences using a set of production rules resulting in hierarchical phrase structure trees, focusing on constituency relationships, while dependency grammar centers on direct syntactic dependencies between words, making the verb the sentence's structural anchor. CFG breaks sentences into nested constituents like noun and verb phrases, opposed to dependency grammar's network of dependencies highlighting direct word-to-word connections, suited for different linguistic analyses and parsing techniques .

Challenges in POS tagging include handling homonyms with different meanings, context sensitivity with words acting as different parts of speech depending on usage, and variability in informal language or domain-specific usage. These challenges affect NLP by potentially introducing inaccuracies in lexical analysis, thus impacting more complex tasks like parsing and semantic interpretation, where precise tagging is central to deriving meaning and syntactic relationships .

Semantic analysis enhances NLP by providing deeper understanding of meaning, enabling contextually accurate interpretations of words and phrases. It assists in disambiguating word senses, coreference resolution, and detecting subtleties in meaning beyond syntactic structures. By aligning language processing with human understanding of meaning, it supports applications like machine translation and intelligent question answering systems, pushing the boundaries of technology's capability to process language naturally .

Grammar in NLP establishes rules for sentence validity and structure, enabling systems to parse and understand human language. It ensures sentence correctness, aids in extracting relationships, and facilitates tasks such as machine translation and question answering by providing semantic and syntactic clarity. Lexicons define word types, syntax rules shape sentence formation, and grammar components collectively underpin the accuracy and functionality of NLP applications .

Data retrieval involves accessing specific data stored in a database, emphasizing the efficiency and accuracy of finding exact matches to queries. Information retrieval aims to find documents or responses that fulfill users' information needs, even when queries are imprecise. This differentiation is important in language processing because NLP tasks often require understanding the context and semantics to retrieve meaningful content, not just exact data matches, thus aligning more with information retrieval dynamics .

Types of machine translation include rule-based, statistical, and neural machine translation. Rule-based systems rely on linguistic rules and bilingual dictionaries, offering clear grammatical adherence. Statistical models use large corpora to infer translation probabilities, enhancing adaptability but often lacking precision. Neural machine translation, leveraging deep learning, provides context-aware translations through its capacity to learn language nuances, offering high accuracy and flexibility unmatched by other models .

Key applications of word sense disambiguation in NLP include machine translation, where accurate interpretations of word meanings prevent inaccurate translations, and in information retrieval, ensuring relevance in search results by reducing semantic confusion. It is also crucial in question-answering systems, where precise word meaning allows for accurate responses. These applications depend on WSD for clarity and correctness, impacting the overall success of language processing tasks .

Anaphora resolution is vital in discourse processing as it determines the referents of expressions like pronouns, ensuring continuity and coherence in understanding texts. Its impact on NLP systems is profound, influencing tasks like text summarization, machine translation, and dialogue systems, where maintaining contextual awareness and semantic linkage across sentences is critical for generating accurate and meaningful responses .

You might also like