Professional Documents
Culture Documents
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
SBU ID#105735755
CSE 352 Artificial Intelligence
Prof. Anita Wasiewska
October 23, 2008
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Works Cited
Bautin, Mikhail, Steven Skiena, et al. Advances in News and
Blog Analysis with Lydia. Stony Brook University. 20 Oct
2008 h http://cs.sunysb.edui .
Carnie, Andrew. Syntax: A Generative Introduction. 2nd
Edition. Malden, MA: Blackwell Publishing, 2007.
Rabiner, Lawrence R. A Tutorial on Hidden Markov Models
and Selected Applications in Speech Recognition.
University of California, Santa Barbara. 20 Oct 2008 h
http://www.ece.ucsb.edui .
Sipser, Michael. Introduction to the Theory of Computation.
2nd Edition. Boston: Thompson, 2006.
Skiena, Steve. The Algorithm Design Manual. 2nd Edition.
London: Springer, 2008.
The Trouble with NLP. SpecGram. 20 Oct 2008 h
http://specgram.com i.
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Outline
1
Introduction
Warning
How Do We Think About Language?
Context-Free Grammar
What is a Context-Free Grammar?
Languages and Context-Free Grammar
Parse Tree Examples
Dynamic Programming and Context-Free Grammars
Natural Language Processing
The Problems of a Deterministic Approach
Syntactic Ambiguities
Semantic Ambiguities
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Warning
How Do We Think About Language?
Warning!
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Warning
How Do We Think About Language?
Warning!
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Warning
How Do We Think About Language?
Warning!
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Warning
How Do We Think About Language?
Warning!
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Warning
How Do We Think About Language?
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Warning
How Do We Think About Language?
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Warning
How Do We Think About Language?
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Warning
How Do We Think About Language?
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Warning
How Do We Think About Language?
Generative Grammar
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Warning
How Do We Think About Language?
Generative Grammar
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Warning
How Do We Think About Language?
Generative Grammar
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
P
(
P
(
P
(
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
P
(
P
(
P
)
( )
This is just one of several ways of deriving this statement
hence this is an ambiguous grammar.
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
C
[Q]
TP
DP
D
D
NP
T
-ed
VP
V
N
N
John
V
V
walk
PP
P
to
DP
D
D
the
NP
N
N
store
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Creating A Recurrence
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Creating A Recurrence
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Creating A Recurrence
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
The Algorithm
(X YZ )G
j
_
M[i , k, Y ] M[k + 1, j, Z ]
k=i
(Skiena 299)
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
The Algorithm
(X YZ )G
j
_
M[i , k, Y ] M[k + 1, j, Z ]
k=i
(Skiena 299)
Since it takes linear time to evaluate each cell in the array,
and there are n2 cells, evaluating M(1, n, S), where S is the
start symbol of the grammar, takes O(n3 ) time.
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Syntactic Ambiguities
CP
C
C
[Q]
C
C
[Q]
TP
T
DP
I
T
-ed
TP
T
DP
I
VP
CP
T
-ed
VP
V
V
shoot
DP
an elephant in my pajamas
V
shoot
PP
DPin my pajamas
an elephant
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Semantic Ambiguities
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Semantic Ambiguities
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Semantic Ambiguities
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Semantic Ambiguities
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
So What Do We Do Now?
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
So What Do We Do Now?
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
So What Do We Do Now?
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Probabilistic Grammars
We have seen that there exist sentences for which there exist
multiple parse trees. With longer sentences there could be
quite a large number of derivations.
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Probabilistic Grammars
We have seen that there exist sentences for which there exist
multiple parse trees. With longer sentences there could be
quite a large number of derivations.
Therefore, instead of having a purely deterministic grammar,
we can introduce a grammar that has probabilities associated
with each production.
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Probabilistic Grammars
We have seen that there exist sentences for which there exist
multiple parse trees. With longer sentences there could be
quite a large number of derivations.
Therefore, instead of having a purely deterministic grammar,
we can introduce a grammar that has probabilities associated
with each production.
Then we can view the space of all possible parses as a search
space, and use Prolog to search and determine the relative
probabilities of each interpretation.
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Probabilistic Grammars
We have seen that there exist sentences for which there exist
multiple parse trees. With longer sentences there could be
quite a large number of derivations.
Therefore, instead of having a purely deterministic grammar,
we can introduce a grammar that has probabilities associated
with each production.
Then we can view the space of all possible parses as a search
space, and use Prolog to search and determine the relative
probabilities of each interpretation.
The most likely syntax tree is chosen as the correct parsing of
that sentence.
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Probabilistic Grammars
We have seen that there exist sentences for which there exist
multiple parse trees. With longer sentences there could be
quite a large number of derivations.
Therefore, instead of having a purely deterministic grammar,
we can introduce a grammar that has probabilities associated
with each production.
Then we can view the space of all possible parses as a search
space, and use Prolog to search and determine the relative
probabilities of each interpretation.
The most likely syntax tree is chosen as the correct parsing of
that sentence.
These parsers are often supplemented with corpuses (large
bodies of text) that can aid in computing the probabilities of
each rule.
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Automatic Tranlations
Anyone who has used a computer to translate something in a
foreign language has seen that it produces less-than-desirable
results that are frequently not symmetric.
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Automatic Tranlations
Anyone who has used a computer to translate something in a
foreign language has seen that it produces less-than-desirable
results that are frequently not symmetric.
For example, Google translates John drove to the store in his
car after school today. into Italian as Giovanni ha spinto a
conservare nella sua auto dopo la scuola di oggi. In turn,
that is translated back into English as John has pushed to
keep in his car after school today.
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Automatic Tranlations
Anyone who has used a computer to translate something in a
foreign language has seen that it produces less-than-desirable
results that are frequently not symmetric.
For example, Google translates John drove to the store in his
car after school today. into Italian as Giovanni ha spinto a
conservare nella sua auto dopo la scuola di oggi. In turn,
that is translated back into English as John has pushed to
keep in his car after school today.
Obviously this is one of the harder problems facing NLP, and
while there have been a number of commmercial efforts, none
have been particularly successful.
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Analyzing Subjectivity
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Analyzing Subjectivity
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Analyzing Subjectivity
Tynan Fitzpatrick
Introduction
Context-Free Grammar
Natural Language Processing
Current Research and Progress in NLP
Probabilistic Grammars
Human Productions
Machine Translations
News and Blog Analysis with Lydia
Analyzing Subjectivity
Tynan Fitzpatrick