Statistical Natural Language Processing
- Dr. Besnik Fetahu
Statistical Natural Language Processing Dr. Besnik Fetahu Overview - - PowerPoint PPT Presentation
Statistical Natural Language Processing Dr. Besnik Fetahu Overview POS tagging Morphology Phrase structure and ambiguities Semantics POS tagging Group words of a language into classes which show similar syntactic behavior
show similar syntactic behavior
categories or part-of-speech tags
verbs (VB), and adjectives (JJ)
The 𝒕𝒃𝒆 𝒋𝒐𝒖𝒇𝒎𝒎𝒋𝒉𝒇𝒐𝒖 𝒉𝒔𝒇𝒇𝒐 𝒈𝒃𝒖 …
Children eat sweet candy. Nouns (NN) Verbs (VB) Adjectives (JJ) adjectives Children refers to a group
refers a type of food. Sweet is an adjective as it describes the attribute of candy. Eat is a verb as it describes an action, that of children eating candy.
Children eat sweet candy. Nouns (NN) Verbs (VB) Adjectives (JJ) Children refers to a group
refers a type of food. Sweet is an adjective as it describes the attribute of candy. Eat is a verb as it describes an action, that of children eating candy. Sweet can be a noun (i.e. in British English) meaning the same as candy Candy can be a verb describing the act of preserving (e.g. fruit).
the vocabulary of any language, thus, they for each vocabulary they represent the largest groups of words
belonging to these categories have a clear grammatical use.
process known as morphological processes, which include:
verb forms
means of prefixes and to indicate grammatical distinctions like singular and plural.
to.
and plurality.
class:
the adverbial form (e.g. old, difficult).
??? Donau dampf schif fahrts gesellschaft Rind fleisch etikettierungs überwachungs aufgaben übertragungs gesetz
animals etc.
woman’s house” indicates that the woman owns the house.
number Singular, plural gender Feminine, masculine, neuter case Nominative, genitive, dative, accusative
is somehow salient in the discourse context.
person (1st = speaker, 2nd = hearer, or 3rd = other discourse entities).
function of a subject (nominative) or object (accusative) in a sentence.
that we can uniquely determine.
mentioned.
(e.g. “a red rose”)
are formed with auxiliary words (e.g. more or most)
“many”, “some”
(interrogative pronoun)
action is in progress
forming the present/past perfect (e.g. has walked, had walked)
modify verbs
enter into strong-bonds with verbs in the formation
the sentence to distinguish particles and prepositions
bill” (particle)
the green triangle and the blue square [noun phrases]
sentences (or clauses), e.g.:
to the idea of such groups behaving as constituents
syntactic possibilities for expansion.
phrase NP and a verb phrase VP .
verbs
determiner, zero or more adjective phrases, a noun head, and then perhaps post-modifiers (e.g. prepositional phrases or clausal modifiers)
The homeless old man in the park that I tried to help yesterday
sentence that depend syntactically on the verb
preposition and contain a noun phrase complement
types (i.e., noun phrases and verb phrases) and usually express spatial and temporal locations and
quite certain to succeed.
sentence from the meaning of the words
categories.
verb are inverted
The children (subject) should (auxiliary verb) eat spinach (object). Should (auxiliary verb) the children (subject) eat spinach (object)? Eat spinach!
Rewrite rules Derivations of the rewrite rules
Local tree representation of the derivation rules Bracketing of the derivation rules
[S [NP [AT The] [NNS children]] [VP [VBD ate] [NP [AT the] [NN cake]]]]
The women who found the wallet were given a reward.
Subject-Verb agreement Recursive constituency
Should Peter buy a book? Which book should Peter buy? Long dependencies (anything beyond a tri-gram)
structure trees that could all have given rise to a particular sequence of words.
ambiguity or syntactic ambiguity.
particularly frequent is attachment ambiguity.
Phrase structure ambiguity – attachment ambiguity
The children ate the cake with a spoon. “High” attachment to the verb phrase makes a statement about the instrument that the children used while eating the cake “Low” attachment to the noun phrase tells us which cake was eaten
Phrase structure ambiguity – attachment ambiguity
you along a path that suddenly turns out not to work.
being tricked into adopting a spurious parse and then having to backtrack to try to construct the right parse.
The horse raced past the barn fell. The horse raced past the barn …
Fell cannot be added to this parse. So we have to backtrack to raced and construct a completely different parse, corresponding to the meaning The horse fell after it had been the barn.
words, constructions, and utterances.
words are related to each other. This include several word relatedness cases:
different meaning)
polysemy.
guarantee that we can resolve the meaning of a phrase or sentence:
meanings of the parts plus some additional semantics that cannot be predicted from the parts.
and the meaning of the phrase is completely
phrase is pragmatics.
language conventions interact with literal meaning:
Mary helped Peter get out of the cab. He thanked her. Mary helped the other passenger out of the cab. The man had asked her to help him because of his foot injury.