0% found this document useful (0 votes)
17 views50 pages

Comprehensive Guide to NLP Techniques

The document outlines various modules related to Natural Language Processing (NLP), covering topics such as NLP processes, affixes, POS tagging, semantic analysis, reference resolution, and machine translation. Each module includes specific concepts, algorithms, and challenges associated with NLP, along with examples and applications. Additionally, it discusses methodologies like the Hobbs algorithm for pronoun resolution and statistical approaches for machine translation.

Uploaded by

Manav Purswani
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)
17 views50 pages

Comprehensive Guide to NLP Techniques

The document outlines various modules related to Natural Language Processing (NLP), covering topics such as NLP processes, affixes, POS tagging, semantic analysis, reference resolution, and machine translation. Each module includes specific concepts, algorithms, and challenges associated with NLP, along with examples and applications. Additionally, it discusses methodologies like the Hobbs algorithm for pronoun resolution and statistical approaches for machine translation.

Uploaded by

Manav Purswani
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

Module 1

• Different stage involved in NLP process with suitable example -------------------------------------------2


• Challenges in various stages in NLP ---------------------------------------------2
• Explain the ambiguities associated at each level with example for Natural Language processing
• Applications

Module 2

• Define affixes. Explain the types of affixes.


• Porter stemming algorithm in detail? Working illustrates ------------------------------------------4
• Good Turing Discounting
• Explain how N-gram model is used in spelling correction
• Explain the role of FSA in morphological analysis?
• Represent output of morphological analysis for Regular verb, Irregular verb, singular noun, plural noun Also
Explain Role of FST in Morphological Parsing with an example
• Concept of tokenization and stemming
• Explain inflectional and derivational morphology with an example
• Explain perplexity of any language model

Module 3

• Describe open class words and closed class words in English with examples
• What is POS tagging? Discuss various challenges faced by POS tagging. ---------------- 3
• Max entropy model for POS tagging
• Hidden Markov Model? Limitations -----------------------------2
• Rule-based, Stochastic and Transformation-based tagging
• Explain the use of Probabilistic Context Free Grammar (PCFG) in natural language processing with example
• How conditional Random Field (CRF) is used for sequence labelling.
• Top-down v/s bottom-up parser

Module 4

• Syntactic ambiguity v/s Lexical Ambiguity


• Homonymy, Polysemy, Synonymy, Antonymy
• Yarowsky bootstrapping approach of semi supervised learning
• word sense disambiguation (WSD) (lesk algo)? Discuss dictionary-based approach for WSD. ------- 4
• Describe semantic analysis
• Lexical semantic analysis
Module 5

• Hobbs algorithm for pronoun resolution ------------------------------2


• Reference resolution--------------------------------------2
• Discourse reference resolution
• three types of referents that complicate the reference resolution problem
• what are five types of referring expressions? Explain with the help of example.
• Centering Algorithm for reference resolution ----------------------------------2

Module 6

• What is rule base machine translation?


• statistical approach for machine translation
• Explain machine translation approaches -----------------------------2
• different steps in text processing for Information Retrieval -----------------------2
• information retrieval v/s information extraction
• Text summarization in detail
1. Explain FSA for nouns and verbs. Also Design a Finite State Automata (FSA) for the words of English numbers 1-99
2. Consider the following corpus
the/DT students/NN pass/V the/DT test/NN the/DT students/NN wait/V for/P the/DT result/NN teachers/NN
test/V students/NN
Compute the emission and transition probabilities for a bigram HMM. Also decode the following sentence using
Viterbi algorithm. “The students wait for the test”
3. Explain Question Answering system (QAS) in detail
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Module 2 ---dwn
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Affixes ?
FSA
FST

N-gram
Good turing algorithm
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Module 3 ---dwn
EXAMPLE
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
CRF pending
////////////////////////////////////////////////////////////////////////////////////////////////

Module 4 ---down
WSD
DICTIONARY BASED
LESK ALGO ---dwn
Yarowsky
Module 5 ----down
//////////////////////////////////////////////////////////////////////////////////////
////
HOBBS ALGORITHM

Because computers lack Common sense.

Hobbs algorithm is one of the several approaches for pronoun resolution. The
algorithm is mainly based on the syntactic parse tree of the sentences. To make the
idea more clear let’s consider the previous example of Jack and Jill and understand
how we humans try to resolve the pronoun ‘his’.

Let us consider two sentences:


S1 : Jack is an engineer.
S2 : Jill likes him.
The input: the pronoun to be resolved, the text with pronoun
The syntax parse trees of the sentences are given below:
We start at the target pronoun in the tree, and crawl up the parse tree to the root
node(S). It performs a breadth first left to right search of the node’s children to the
left of the target for each noun phrase or ‘S’ node it finds. As a result, in our case, the
algorithm begins with the parse tree of sentence 2 and works its way up to the root
node S2. After that, it performs a breadth-first search to locate the noun phrase (NP).
The algorithm discovers its first noun phrase for the word ‘Jill’ here.

Because Jill “likes” the person of the pronoun, the pronoun cannot obviously be Jill.
This is explained better through Binding theory.
Binding theory states that: A reflexive can refer to the subject of the most immediate
clause in which it appears, whereas a nonreflexive cannot corefer this subject.. Words
such as himself, herself, themselves, etc. are known as reflexive.
So, in our scenario, ‘him’ will not refer to Jill because of the binding theory limitation.
Even if the branch is investigated, Jill will not be the accepted referent for the
pronoun ‘he’ due to the gender agreement requirement. As a result, the algorithm
now begins its search in the previous sentence’s syntax tree.

Following the Hobbs distance property, we perform a breadth first left to


right search of the node’s children for each noun phrase it discovers. As a result, the
sentence’s subject Jack, who is an engineer, is explored before the object engineer,
and Jack is finally the resolved referent for the pronoun him.

Module 6 ---dwn
Statistical machine translation (SMT) is a type of machine translation (MT) that uses statistical models to
translate text from one language to another. Unlike traditional rule-based systems, SMT relies on large
bilingual text corpora to build probabilistic models that determine the likelihood of a sentence in the target
language given a sentence in the source language.
Given an English sentence ee, the translation into French ff involves three steps:
1. Phrase Segmentation: Divide the English sentence into segments e1,e2,…,ene1,e2,…,en.
2. Phrase Matching: For each English segment eiei, select a corresponding French phrase fifi. The
likelihood that fifi is the translation of eiei is represented as: P(fi∣ei)P(fi∣ei)
3. Phrase Reordering: After selecting the French phrases f1,f2,…,fnf1,f2,…,fn, reorder them into a
coherent French sentence.
Example: Reordering with Distortion
Consider the sentence: “There is a stinky wumpus sleeping in 2 2.”
1. The sentence is divided into five phrases: e1,e2,e3,e4,e5e1,e2,e3,e4,e5.
2. Each English phrase is translated into a French phrase: f1,f2,f3,f4,f5f1,f2,f3,f4,f5.
3. The French phrases are reordered as f1,f3,f4,f2,f5f1,f3,f4,f2,f5.
This reordering is determined by the distortion didi, which shows how much each phrase has
shifted.
////
////

Common questions

Powered by AI

Affixes significantly influence the morphological structure by modifying the base form of words, thus altering their meaning or grammatical function . They can be classified as prefixes, infixes, and suffixes, each attaching in different positions relative to the root . This classification enhances linguistic analysis by allowing for the systematic understanding of word formation patterns, syntactic category prediction, and semantic derivations . Analyzing affix use can reveal relationships between words, contributing to better parsing, translation, and lexical semantics in NLP applications .

Question Answering Systems (QAS) feature components such as question processing, information retrieval, and answer extraction . They process and classify questions to understand user intent, retrieve relevant information from large data sources, and extract concise answers . These systems enhance information retrieval by providing direct responses rather than document lists, utilizing natural language understanding and contextual analysis to improve answer accuracy . QAS applications include customer support, virtual assistants, and search engines, providing users with efficient access to precise information .

Finite State Automata (FSA) are used in morphological analysis to accept or reject input strings, such as identifying valid word forms based on given morphological rules . For example, an FSA can determine whether a verb's inflection is valid in English . Finite State Transducers (FST) extend FSAs by not only accepting strings but also producing corresponding output, useful for tasks like converting a word into its root form and morphological features . FSTs can model the transformation from 'running' to its base 'run' with tense information, crucial for tasks requiring language understanding and manipulation .

Natural language processing (NLP) stages face various challenges, including lexical ambiguity, syntactic parsing complexity, and semantic understanding. At the lexical level, ambiguity can arise from homonyms, polysemy, and context-dependent meanings, complicating tokenization and part-of-speech (POS) tagging . Syntactic parsing challenges involve disambiguating sentence structures with multiple parses, handling null constituents, and correct grammar rule applications . Semantic challenges include word sense disambiguation, metaphor interpretation, and context-dependent meaning extraction, requiring robust techniques to ensure accurate understanding . Each challenge affects the overall NLP pipeline, potentially leading to errors in subsequent stages, affecting machine translation, sentiment analysis, and information extraction tasks .

Conditional Random Fields (CRF) are applied in sequence labeling tasks, such as POS tagging and named entity recognition, by modeling the conditional probability of label sequences given observed data . They offer advantages over models like Hidden Markov Models (HMM) by allowing for the inclusion of arbitrary, overlapping features without violating the independence assumptions that hinder HMMs . CRFs support global optimization over the entire sequence, which can increase accuracy by accounting for feature dependencies across entire input sequences, enhancing performance on tasks requiring context-awareness beyond local observations .

Good-Turing discounting improves the statistical accuracy by adjusting frequency estimates for unseen events in language models . It addresses the zero-frequency problem in probability estimations by reallocating probability mass from observed events to unobserved events, providing non-zero probabilities to n-grams not seen in the training corpus . This adjustment ensures that language models can generalize better to new or rare linguistic input, making them more robust and reliable for various NLP applications .

Statistical Machine Translation (SMT) differs from rule-based translation by using probabilistic models derived from large text corpora, while rule-based systems rely on linguistic rules coded by human experts . SMT calculates the probability of a target language sentence given a source sentence, allowing it to adapt to real-world text variations and overcome the rigidity of explicit rule definitions . This model can better handle the complexity and variability of natural languages, providing more flexible translations but sometimes at the cost of grammatical accuracy .

N-gram models assist in spelling correction by analyzing the probability of word sequences, helping detect errors based on unusual or low-probability word pairings . They capture contextual information to model common word sequences, leading to more informed correction suggestions when deviations from expected patterns occur . However, relying solely on N-gram models can be limiting, as they may struggle with longer contexts, rare word sequences, or homophonic errors that fit typical patterns but are contextually misplaced . Additionally, they lack the ability to incorporate syntactic or semantic context beyond a fixed window .

Syntactic ambiguity occurs when a sentence can be parsed in multiple ways, such as "Visiting relatives can be annoying," which can imply relatives visit or the act of visiting them . Lexical ambiguity arises from words with multiple meanings, like "bank," meaning a financial institution or river edge . These ambiguities challenge NLP by complicating accurate semantic interpretation, part-of-speech tagging, and parsing, leading to potential misunderstandings in downstream applications like translation and information extraction . Effective disambiguation relies on contextual clues and advanced models capable of integrating syntactic parsing with semantic understanding .

The Hobbs algorithm resolves pronoun references by leveraging syntactic parse trees. It starts from the pronoun node and searches breadth-first left-to-right through nodes for noun phrases in the parse tree, moving to previous sentences if needed . A key limitation arises from binding theory—reflexives can reference only their immediate clause subject, while non-reflexives cannot, restricting the pronoun's referent . Additionally, gender agreement restricts the acceptance of certain referents, requiring careful syntax tree analysis and broader context consideration, which may still fall short without semantic understanding .

You might also like