 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Word Classes and English Grammar.

Slides:



Advertisements
Similar presentations
Language and Grammar Unit
Advertisements

School of something FACULTY OF OTHER School of Computing FACULTY OF ENGINEERING Chunking: Shallow Parsing Eric Atwell, Language Research Group.
 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Feature Structures and Unification.
Chapter 8. Word Classes and Part-of-Speech Tagging From: Chapter 8 of An Introduction to Natural Language Processing, Computational Linguistics, and Speech.
BİL711 Natural Language Processing
 Christel Kemke 1 Morphology COMP 4060 Natural Language Processing Morphology, Word Classes, POS Tagging.
Ana Bertha Camargo Mejía
MORPHOLOGY - morphemes are the building blocks that make up words.
The Eight Parts of Speech
LING NLP 1 Introduction to Computational Linguistics Martha Palmer April 19, 2006.
1 Words and the Lexicon September 10th 2009 Lecture #3.
Natural Language Processing - English Grammar -
Artificial Intelligence 2005/06 From Syntax to Semantics.
Syllabus Text Books Classes Reading Material Assignments Grades Links Forum Text Books עיבוד שפות טבעיות - שיעור שמונה Context Free Grammars and.
Syntax Phrase and Clause in Present-Day English. The X’ phrase system Any X phrase in PDE consists of: – an optional specifier – X’ (X-bar) which is the.
 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Feature Structures and Unification.
NLP and Speech 2004 English Grammar
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Fall 2005-Lecture 2.
Matakuliah: G0922/Introduction to Linguistics Tahun: 2008 Session 10 Syntax 1.
 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Grammar Sentence Constructs.
1 CONTEXT-FREE GRAMMARS. NLE 2 Syntactic analysis (Parsing) S NPVP ATNNSVBD NP AT NNthechildrenate thecake.
1 CSC 594 Topics in AI – Applied Natural Language Processing Fall 2009/ Outline of English Syntax.
CS224N Interactive Session Competitive Grammar Writing Chris Manning Sida, Rush, Ankur, Frank, Kai Sheng.
Chapter 9. Context-Free Grammars for English
Chapter 2 A rapid overview.
Main Verb Phrases Traditional grammar categorizes verbs by tense, then equates tense with real world time In reality, there are three grammatical concepts.
Constituency Tests Phrase Structure Rules
THE PARTS OF SYNTAX Don’t worry, it’s just a phrase ELL113 Week 4.
Phrases and Sentences: Grammar
Embedded Clauses in TAG
Grammar Skills Workshop
Glossing – Lesson 3 Omit English words that do not exist in ASL.
8. Word Classes and Part-of-Speech Tagging 2007 년 5 월 26 일 인공지능 연구실 이경택 Text: Speech and Language Processing Page.287 ~ 303.
Linguistic levels of structure Sound Phoneme Morpheme Word Phrase Clause Sentence Meaning ð iː z b juː t ə f ʊ l w ɪ m ɪ n s ɛ d w iː w ɜː t r uː m ɛ n.
Syntax.
Syntax I: Constituents and Structure Gareth Price – Duke University.
Dr. Monira Al-Mohizea MORPHOLOGY & SYNTAX WEEK 12.
Dr. Monira Al-Mohizea MORPHOLOGY & SYNTAX WEEK 11.
CS : Language Technology for the Web/Natural Language Processing Pushpak Bhattacharyya CSE Dept., IIT Bombay Constituent Parsing and Algorithms (with.
NLP. Introduction to NLP Is language more than just a “bag of words”? Grammatical rules apply to categories and groups of words, not individual words.
BY HELEN LORENA SOLANO ALEXANDER ARANDA. is a group of words without both a subject and predicate. Phrases combine words into a larger unit that can function.
GrammaticalHierarchy in Information Flow Translation Grammatical Hierarchy in Information Flow Translation CAO Zhixi School of Foreign Studies, Lingnan.
Parts of Speech (Lexical Categories). Parts of Speech n Nouns, Verbs, Adjectives, Prepositions, Adverbs (etc.) n The building blocks of sentences n The.
Chapter 12: Context-Free Grammars Heshaam Faili University of Tehran.
Parsing with Context-Free Grammars for ASR Julia Hirschberg CS 4706 Slides with contributions from Owen Rambow, Kathy McKeown, Dan Jurafsky and James Martin.
CPE 480 Natural Language Processing Lecture 4: Syntax Adapted from Owen Rambow’s slides for CSc Fall 2006.
1 Context Free Grammars October Syntactic Grammaticality Doesn’t depend on Having heard the sentence before The sentence being true –I saw a unicorn.
Natural Language Processing
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.
Artificial Intelligence 2004
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 2.
SYNTAX.
◦ Process of describing the structure of phrases and sentences Chapter 8 - Phrases and sentences: grammar1.
Word classes and part of speech tagging. Slide 1 Outline Why part of speech tagging? Word classes Tag sets and problem definition Automatic approaches.
Basic Syntactic Structures of English CSCI-GA.2590 – Lecture 2B Ralph Grishman NYU.
PARTS OF SPEECH The 8 “building blocks” of the English language…
Word classes and part of speech tagging Chapter 5.
Expanding verb phrases
Word classes categories of words categorised depending on meaning, function and how they are formed can be found in dictionaries nine word classes in English.
Chapter 5 English Syntax: The Grammar of Words. What is syntax? the study of the structures of sentences combining words to create ‘all & only’ ‘well-formed’
English 098: English Fundamentals.  Linguistics: the scientific study of language and its structure  Semantics: the branch of linguistics and logic.
Lecture 1 Sentences Verbs.
Syntax Parts of Speech and Parts of the Sentence.
Descriptive Grammar – 2S, 2016 Mrs. Belén Berríos Droguett
Lecture 2: Categories and Subcategorisation
Parts of Speech Review.
Beginning Syntax Linda Thomas
Appendix A: Basic Grammar and Punctuation Reference
Syntax.
NOUNS person, place, thing, or idea
Presentation transcript:

 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Word Classes and English Grammar

2007/08  Christel Kemke English Grammar Describing Natural Language Syntax: Word Classes and English Grammar Word Classes and Part-of-Speech Tagging CFG with Grammatical Extensions Sentence Structures Noun Phrase - Modifications Verb Phrase - Subcategorization

 Christel Kemke 2007/08 Word Classes and POS Tagging

2007/08  Christel Kemke Word Classes Sort words into categories according to: morphological properties Which types of morphological forms do they take? e.g. form plural: noun+s; 3rd person: verb+s distributional properties What other words or phrases can occur nearby? e.g. possesive pronoun before noun semantic coherence Classify according to similar semantic type. e.g. nouns refer to object-like entities

2007/08  Christel Kemke Open vs. Closed Word Classes Open Class Types The set of words in these classes can change over time, with the development of the language, e.g. spaghetti, to download Open Class Types: nouns, verbs, adjectives, adverbs

2007/08  Christel Kemke Open vs. Closed Word Classes Closed Class Types The set of words in these classes are very much determined and hardly ever chnage for one language. Closed Class Types: prepositions, determiners, pronouns, conjunctions, auxiliary verbs, particles, numerals

2007/08  Christel Kemke Open Class Words: Nouns Nouns – denote objects, concepts, … Proper Nouns Names for specific individual objects, entities e.g. the Eiffel Tower, Dr. Kemke Common Nouns Names for categories or classes or abstracts e.g. fruit, banana, table, freedom, sleep,... Count Nouns enumerable entities, e.g. two bananas Mass Nouns not countable items, e.g. water, salt, freedom

2007/08  Christel Kemke Open Class Words: Verbs Verbs – denote actions, processes, states e.g. smoke, dream, rest, run several morphological forms e.g. non-3rd person-eat 3rd person-eats progressive/-eating present participle/ gerundive past participle-eaten Auxiliaries, e.g. be, as sub-class of verbs

2007/08  Christel Kemke Open Class Words: Adjectives Adjectives – denote qualities or properties of objects, e.g. heavy, blue, content most languages have concepts for colour- white, green,... age- young, old,... value- good, bad,... not all languages have adjectives as separate class

2007/08  Christel Kemke Open Class Words: Adverbs Adverbs – denote modifications of actions (verbs), qualities (adjectives), e.g. walk slowly, heavily drunk Directional or Locational Adverbs Specify direction or location e.g. go home, stay here Degree Adverbs Specify extent of process, action, property e.g. extremely slow, very modest

2007/08  Christel Kemke Open Class Words: Adverbs 2 Manner Adverbs Specify manner of action or process e.g. walk slowly, run fast Temporal Adverbs Specify time of event or action e.g. yesterday, Monday

2007/08  Christel Kemke Closed Word Classes Closed Class Types: prepositions: on, under, over, at, from, to, with,... determiners: a, an, the,... pronouns: he, she, it, his, her, who, I,... conjunctions: and, or, as, if, when,... auxiliary verbs: can, may, should, are particles: up, down, on, off, in, out, numerals: one, two, three,..., first, second,...

2007/08  Christel Kemke Closed Word Class: Prepositions Prepositions Occur before noun phrases semantics: describe relations often spatial or temporal relations

2007/08  Christel Kemke Closed Word Class: Pronouns Pronouns Shorthand for referring to entity or event Semantics: reference to entity Personal Pronouns refer to persons or entities, e.g. you, he, it,... Possessive Pronouns possession or relation between person and object, e.g. his, her, my, its,... Wh-Pronouns reference in question or back reference, e.g. Who did this...Frieda, who is 80 years old...

2007/08  Christel Kemke Closed Word Class: Conjunctions Conjunctions Join two phrases, clauses, or sentences Subordinating conjunction for embedded phrases Semantics: difficult Coordinating Conjunction and, or, but,... e.g. He takes the cat and the dog. He takes the dog and she takes the dog. Subordinating Conjunction that,... e.g. He thinks that the cat is nicer than the dog.

2007/08  Christel Kemke Closed Word Class: Auxiliary Verbs Auxiliary Verbs Mark semantic features of main verb Semantics: difficult Tense addition expressing present, past or future,... e.g. He will take the cat home. Aspect addition expressing completion of action e.g. He is taking the cat home. (incomplete) Mood addition expressing whether action is necessary.. e.g. He can take the cat home. (possible)

2007/08  Christel Kemke Closed Word Class: Copula Copula and Modal Verbs subclass of Auxiliary Verbs State or tense description or modality of action Semantics: difficult (e.g. modal logic) State / Process: be and do e.g. He is at home. He does nothing. Tense: have e.g. He has taken the cat home. Modality: can, ought to, should, must e.g. He can take the cat home. (possibility)

2007/08  Christel Kemke POS Tagging - Tagsets Tagsets for English  Penn Treebank, 45 tags  Brown corpus, 87 tags  C5 tagset, 61 tags  C7 tagset, 146 tags For references see textbook, p.296 C5 and C7 tagsets are listed in textbook, Appendix C

2007/08  Christel Kemke POS Tagging - Taggers Problems in POS Tagging: Ambiguity Methods: Rule-Based Tagging input is string of words, output is tagged string Stochastic Tagging determines tags based on the probability of the occurrence of the tag, given the observed word, in the context of the preceding tags.

 Christel Kemke 2007/08 Sentence Level Constructs

2007/08  Christel Kemke Sentence Level Constructs I declarative “ This flight leaves at 9 am. ” S → NP VP imperative “ Book this flight for me. ” S → VP

2007/08  Christel Kemke Sentence Level Constructs II yes-no-question “ Does this flight leave at 9 am? ” S → Aux NP VP wh-question “ When does this flight leave Winnipeg? ” S → Wh-NP Aux NP VP

2007/08  Christel Kemke Noun Phrase Modification 1 Noun Phrase Modifiers head = the central noun of the NP modifiers = additions to head noun included in NP modifiers before the head noun (prenominal) modifiers after the head noun (post-nominal) examples: determiners, adjectives, PPs e.g. the young man the girl with the red hat

2007/08  Christel Kemke Noun Phrase Modification - Prenominal  determiner the, a, this, some,...  predeterminer all the flights  cardinal numbers, ordinal numbers one flight, the first flight,...  quantifiers much, little

2007/08  Christel Kemke Noun Phrase Modification - Prenominal  adjectives a first-class flight, a long flight  adjective phrase the least expensive flight Grammar Rule NP → (Det) (Card) (Ord) (Quant) (AP) Nominal

2007/08  Christel Kemke Noun Phrase Modification - Postnominal  prepositional phrase PP all flights from Chicago Nominal → Nominal PP (PP) (PP)  non-finite clause, gerundive postmodifers all flights arriving after 7 pm Nominal → GerundVP GerundVP → GerundV NP | GerundV PP |...  relative clause a flight that serves breakfast Nominal → Nominal RelClause RelClause → (who | that) VP

2007/08  Christel Kemke Verb Subcategorization Verb Phrase and Subategorization VP = Verb + other constituents (complements) Verb Subcategorization Different verbs accept or need different constituents or complements. Verbs can be classified according to the complements they accept or need.

2007/08  Christel Kemke Verb Subcategorization and Complements  sentential complement VP  Verb inf-sentence I want to fly from Boston to Chicago.  NP complement VP  Verb NP I want this flight.  no complement VP  Verb I sleep.

2007/08  Christel Kemke Verb Subcategorization + Complements more forms VP  Verb PP PP I fly from Boston to Chicago.