Download Regular Languages - Lecture Notes | CMPSCI 591 and more Study notes Computer Science in PDF only on Docsity!
Andrew McCallum, UMass Amherst,
Regular Languages
Lecture # Computational Linguistics CMPSCI 591N, Spring 2006 University of Massachusetts Amherst Andrew McCallum
Andrew McCallum, UMass Amherst,
A Little About Yourselves
• Have you programmed before?
- Almost none at all.
- Not much.
- I work for a software company.
- Fortran, C, C++, C#, Lisp, Perl, Python, Java,...
- Only Basic on my Tandy 286!
Andrew McCallum, UMass Amherst,
A Little About Yourselves
• Favorite authors:
- Kurt Vonnegut, George Orwell, Noam Chomsky
- Asimov, Tolkein, Pinger,
- I avoid reading, sorry.
- Tolkein (x6), CS Lewis, etc.
- Stroustrup
- Arthur C. Clark
- Hemmingway, x
- Salman Rushdie
- Obscure foreign names like Savyon Librecht.
- Karel Capek, Milan Kundera, Bulgahov.
Andrew McCallum, UMass Amherst,
A Little About Yourselves
• Why are you in the class?
- Practical skills to help in my linguistic research: accessing data, building grammars...
- Interested in how probabilistic methods can be integrated with algebraic grammars.
- Possibilities of a computer that can make sense of language are very exciting!
- I want to expand my knowledge of AI.
- I want to focus my career in CL, especially translation.
- Want to simulate “the mind’s big bang”.
- I think this will help me get a job!
Andrew McCallum, UMass Amherst,
Some brief history: 1950s
- Early CL on machines less powerful than pocket calculators.
- Foundational work on automata, formal languages, probabilities and information theory.
- First speech systems (Davis et al, Bell Labs).
- MT heavily funded by military, but basically just word substitution programs.
- Little understanding of natural language syntax, semantics, pragmatics.
Andrew McCallum, UMass Amherst,
Some brief history: 1960s
- Alvey report (1966) ends funding for MT in America - the lack of real results realized
- ELIZA (MIT): Fraudulent NLP in a simple pattern matcher psycholtherapist - It’s true, I am unhappy. - Do you think coming here will make you not to be unhappy? - I need some help; that much is certain. - What would it mean to you if you got some help? - Perhaps I could earn to get along with my mother. - Tell me more about your family.
- Early corpora: Brown Corpus (Kudera and Francis)
Andrew McCallum, UMass Amherst,
Some brief history: 1980s
- Procedural --> Declarative (including logic programming)
- Separation of processing (parser) from description of linguistic knowledge.
- Representations of meaning: procedural semantics (SHRDLU), semantic nets (Schank), logic (perceived as answer; finally applicable to real languages (Montague)
- Perceived need for KR (Lenat and Cyc)
- Working MT in limited domains (METEO)
Andrew McCallum, UMass Amherst,
Some brief history: 1990s
- Resurgence of finite-state methods for NLP: in practice they are incredibly effective.
- Speech recognition becomes widely usable.
- Large amounts of digital text become widely available and reorient the field. The Web.
- Resurgence of probabilistic / statistical methods, led by a few centers, especially IBM (speech, parsing, Candide MT system), often replacing logic for reasoning.
- Recognition of ambiguity as key problem.
- Emphasis on machine learning methods.
Andrew McCallum, UMass Amherst,
Examples of Computation Helping
Linguistics
• Kevin Knight
“A Computational
Approach to Deciphering
Unknown Scripts”
Mayan Writing
Pronunciation model, by
Expectation Maximization
(which we will study in
about 5 weeks)
Andrew McCallum, UMass Amherst,
Examples of Computation Helping
Linguistics
Other examples coming later:
- Learning Lexical Semantics
- Augmenting WordNet by mining the Web.
- Automatically discovering English versus Japanese word order by grammar induction.
- Neural Network learners go through the same periods mistakes on irregular verbs as children do.
- ...and others.
Andrew McCallum, UMass Amherst,
Ed Hovy’s thing?
Andrew McCallum, UMass Amherst,
Noam Chomsky
Chomsky Hierarchy
Generative Grammar
Liberatarian-Socialist
The most cited person alive.
Andrew McCallum, UMass Amherst,
Compact description of a language
• Start with some “non-terminal” symbol, S.
• Expand that symbol, using some substitution
rules.
• ...keep applying rules until all non-terminals
are expanded to terminals.
• The string of terminals is in the sentence.
Andrew McCallum, UMass Amherst,
Chomsky Hierarchy
- Type 0 languages (Turing-equivalent) Rewrite rules a → b where a, b are any string of terminals and non-terminals
- Context-sensitive languages Rewrite rules aXb → acb where X is non-terminal and a,b as above
- Context-free languages Rewrite rules X → a where X, a, b as above
- Regular languages Rewrite rules X → aY where X, Y are non-terminals and a is a string of terminals More detail on all this again later. Linguistic example: ATNs TAGs PSGs FSAs