Natural Language Processing

Slides:



Advertisements
Similar presentations
Language and Grammar Unit
Advertisements

Action verbs are either…
Semantics (Representing Meaning)
Noun Verb Adjective Adverb Pronoun Conjunction
Basic Sentence Construction
Parts of Speech Recognizing the Different Word Types Time4Writing provides these teachers materials to teachers and parents at no cost. More presentations,
PARTS OF SPEECH A SENTENCE REQUIRES ONLY TWO THINGS:
BİL711 Natural Language Processing
Used in place of a noun pronoun.
Part of Speech Tagging Importance Resolving ambiguities by assigning lower probabilities to words that don’t fit Applying to language grammatical rules.
Follow these directions: pd.1
The Adjective Phrase.
Sentence Structure By: Lisa Crawford, Edited by: UWC staff
1 Words and the Lexicon September 10th 2009 Lecture #3.
 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Word Classes and English Grammar.
NLP and Speech 2004 English Grammar
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Fall 2005-Lecture 2.
1 CSC 594 Topics in AI – Applied Natural Language Processing Fall 2009/ Outline of English Syntax.
Parts of Speech Meeting #1 Universitas Multimedia Nusantara.
Parts of Speech. Eight parts of speech Nouns Verbs Adjectives Adverbs Pronouns Prepositions Conjunctions Interjections.
The Eight Parts of Speech
8. Word Classes and Part-of-Speech Tagging 2007 년 5 월 26 일 인공지능 연구실 이경택 Text: Speech and Language Processing Page.287 ~ 303.
THE PARTS OF SPEECH. PART OF SPEECH  All words serve a particular function in a sentence.  A word’s function is determined by what “part of speech”
Parts of Speech There are eight parts of speech: noun adverb
Natural Language Processing Lecture 6 : Revision.
Part of Speech PowerPoint Presentation
+ Morphology & Syntax Dr. Monira Al-Mohizea. + Introduction to syntax What is SYNTAX? Grammar: Words (and Phrases) Introducing word class Problems in.
CSA2050: Introduction to Computational Linguistics Part of Speech (POS) Tagging II Transformation Based Tagging Brill (1995)
Pronouns.   Common Noun  Person, place, or thing  Proper noun  The specific name of a person or place  Article  Identifies a noun as a noun  Definite:
© 2006 SOUTH-WESTERN EDUCATIONAL PUBLISHING 11th Edition Hulbert & Miller Effective English for Colleges Chapter 7 PREPOSITIONS.
Word classes and part of speech tagging Chapter 5.
6 TH GRADE LANGUAGE EXAM REVIEW PARTS OF SPEECH.
PARTS OF SPEECHPARTS OF SPEECH. NOUNS Definition: A noun names a person, place, or thing. Example: John, computer, honesty, school A singular noun is.
The Parts of Speech.
Parts of Speech Major source: Wikipedia. Adjectives An adjective is a word that modifies a noun or a pronoun, usually by describing it or making its meaning.
UHCL Writing Center Basic Sentence Construction. UHCL Writing Center Word Forms Sentences can contain Nouns, Verbs, Adverbs, Adjectives, and Prepositions.
WORDS The term word is much more difficult to define in a technical sense, and like many other linguistic terms, there are often arguments about what exactly.
GoBack definitions Level 1 Parts of Speech GoBack is a memorization game; the teacher asks students definitions, and when someone misses one, you go back.
Final Review Grammar. Parts of Speech Noun-person, place, thing, or idea.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 2.
The Building Blocks of Sentences. The 8 Parts of Speech 1.Noun -is the name of a person, place, thing, or idea. Example: John is Tall The name John is.
◦ Process of describing the structure of phrases and sentences Chapter 8 - Phrases and sentences: grammar1.
The Building Blocks of Good Writing
Word classes and part of speech tagging. Slide 1 Outline Why part of speech tagging? Word classes Tag sets and problem definition Automatic approaches.
CSA2050: Introduction to Computational Linguistics Part of Speech (POS) Tagging II Transformation Based Tagging Brill (1995)
Word classes and part of speech tagging Chapter 5.
Unit 1 Language Parts of Speech. Nouns A noun is a word that names a person, place, thing, or idea Common noun - general name Proper noun – specific name.
Parts of Speech By: Miaya Nischelle Sample. NOUN A noun is a person place or thing.
BY GABBY CHARLES JESSICA Parts of Speech. Noun A noun is a person, place, thing, or idea. The girl was at the park.
Grammar The “4 – Level” Analysis. The 4 - Levels Jack ate a delicious sandwich. Level 1 – parts of speech Level 2 – parts of a sentence Level 3 – phrases.
Parts of Speech What is this word’s job?. Verbs  Action Verbs (AV): this is a word that expresses a physical or mental activity. - swim - think - eat.
Sentence Structure By: Lisa Crawford, Edited by: UWC staff
Main Verbs & Helping Verbs
Grammar.
Parts of Speech Review.
The Parts of Speech Manzoor Ahmad Khattak.
Parts of Speech  Copyright 2012                                    Copyright 2012 
Sentence Structure By: Lisa Crawford, Edited by: UWC staff
They are just imposters
NOUNS person, place, thing, or idea
Introduction to Linguistics
Parts of Speech!.
English parts of speech
PREPOSITIONAL PHRASES
Copyright © English3000.org.
Grammar Shots #1 Part of Speech Example Definition Noun Verb Adjective
Parts of Speech Year Nine.
Parts of Speech II.
Parts of Speech There are Eight!.
Parts of Speech.
Presentation transcript:

Natural Language Processing Chapter 3 : Morphological Analysis

Definition Morphology is the study of word formation – how words are built up from smaller pieces. When we do morphological analysis, then, we’re asking questions like, what pieces does this word have? What does each of them mean? How are they combined? Goal : Given a word that’s not in the dictionary, can we derive a root form that is in the dictionary. Morphological analysis is the process of recognizing the root form and type of a morphological variant (prefix, suffix). Given a word W: 4/25/2017 NLP

1- If W is in the dictionary, then return its definition. Algorithm 1- If W is in the dictionary, then return its definition. 2- Else apply morphology rules to identify possible root forms of W. - Each morphology rule strips a prefix or suffix from W, and sometimes adds back replacement characters, to produce a possible root form. If the root form is in the dictionary, success! - When a morphology rule succeeds, the root word definition is returned along with properties of the morphological variant. Rules must be applied recursively! Multiple derivations are common! 4/25/2017 NLP

Sample Morphology Rules 4/25/2017 NLP

Sample Morphology Rules 4/25/2017 NLP

Example of Morphological Analysis 4/25/2017 NLP

Example of Morphological Analysis 4/25/2017 NLP

Example of Morphological Analysis 4/25/2017 NLP

Basic Parts of Speech Parts of Speech: adjective, adverb, article, conjunction, noun, verb, preposition, pronoun, ... A closed class is a class that contains a relatively fixed set of words; new words are rarely introduced into the language. Ex: articles, conjunctions, pronouns, prepositions, ... An open class is a class that contains a constantly changing set of words; new words are often introduced into the language (that readily accept new members) Ex: adjectives, adverbs, nouns, verbs Examples of Closed Classes Articles: a, an, the Conjunctions: and, but, or, ... Demonstratives: this, that, these, ... 4/25/2017 NLP

Basic Parts of Speech Prepositions: to, for, with, between, at, of, ... Pronouns: I, you, me, we, he, she, him, her, ... Quantifiers كلمات غير محددة الكمية ) some, every, most, any, both, ... Articles Articles are especially problematic for natural language generation. Many noun phrases begin with an article. Ex: a newspaper, an apple, the movie But there are many exceptions, for example: The bowl was full of rice. -The bowl was full of apple. I go to college. - I go to university. She went on vacation. - She went on trip. 4/25/2017 NLP

Basic Parts of Speech Nouns Nouns: Words that represent objects, places, concepts, events. Ex: dog, city, idea, marathon Proper nouns : names of persons, city Count nouns: describe specific objects or sets of objects. Ex: dogs, cities, ideas, marathons Mass nouns: describe composites or substances. Ex: dirt, water, garbage, deer Modifiers Adjectives: words that attribute qualities to objects. Ex: wet, loud, happy, funny Noun modifiers: nouns that modify other nouns. Ex: dog food, aluminum can, song book 4/25/2017 NLP

Prepositions and Particles Basic Parts of Speech Prepositions and Particles Prepositions represent relationships, such as time, location, modification, and complements. For example: He put the book on the table. Sam gave the book to Mary. Jane walked up the stairs. Particles follow verbs and create a new meaning. For example: Greg passed out. Charlie threw up his lunch. Sometimes there is preposition/particle ambiguity: Sarah looked over the paper. 4/25/2017 NLP

Basic Parts of Speech Verbs Verbs: represent actions, commands, or assertions. Main verbs: walk, eat, believe, claim, ask, ... Auxiliary verbs: be, do, have Modals: would, should, could, can, will, may, .. Transitive verbs: take a direct object complement. Ex: eat an apple, read a book, sing a song Intransitive verbs: do not take a direct object. Ex: she laughed, he lied, I slept. Bitransitive verbs: take both a direct object and an indirect object.. I gave Mary a gift. She sang the baby a lullaby. 4/25/2017 NLP

part of speech tagging Tagging :The process of assigning a part-of-speech or other lexical class marker to each word in a corpus. Example : the girl kissed baby on cheek WORDS TAGS N V P DET 4/25/2017 NLP

part of speech tagging WORD LEMMA TAG the girl kissed baby on cheek +DET +NOUN +VPAST +PREP 4/25/2017 NLP

part of speech tagging 4/25/2017 NLP

Rule-Based Tagging Basic Idea: Assign all possible tags to words Remove tags according to set of rules of type: if word+1 is an adj, adv, or quantifier and the following is a sentence boundary and word-1 is not a verb like “consider” then eliminate non-adv else eliminate adv. Typically more than 1000 hand-written rules, but may be machine-learned. 4/25/2017 NLP

Stochastic Tagging Based on probability of certain tag occurring given various possibilities Requires a training corpus No probabilities for words not in corpus. Training corpus may be different from test corpus. 4/25/2017 NLP

Transformation-Based Tagging (Brill Tagging) Combination of Rule-based and stochastic tagging methodologies Like rule-based because rules are used to specify tags in a certain environment Like stochastic approach because machine learning is used—with tagged corpus as input Input: tagged corpus dictionary (with most frequent tags) Usually constructed from the tagged corpus Basic Idea: Set the most probable tag for each word as a start value Change tags according to rules of type “if word-1 is a determiner and word is a verb then change the tag to noun” in a specific order 4/25/2017 NLP

Transformation-Based Tagging (Brill Tagging) Training is done on tagged corpus: Write a set of rule templates Among the set of rules, find one with highest score Continue from 2 until lowest score threshold is passed Keep the ordered set of rules 4/25/2017 NLP