100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Samenvatting - Computational Grammar (LIX025B05)

Rating
-
Sold
-
Pages
2
Uploaded on
23-03-2024
Written in
2022/2023

Summary of everything discussed in the course.

Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course

Document information

Uploaded on
March 23, 2024
Number of pages
2
Written in
2022/2023
Type
Summary

Subjects

Content preview

Computational Grammar
Introducti on to Natural Language Processing and Context-Free Grammars
Ambiguity
Lexical ambiguity is when a word can have more than one meaning or multiple definitions, such as
“I saw her duck” in which ‘duck’ can have two meanings. Syntactical ambiguity is when the
structure of a sentence has multiple interpretations, such as “I saw the man with the telescope” in
which you either saw a man together with a telescope or you saw a man through a telescope.
Discourse ambiguity is when the meaning of a sentence is unclear leading to multiple
interpretations, such as “John took his car to the garage” in which ‘his’ can be connected to either
‘John’ or refer to a friend or 3rd person.

Levels of Analysis in Natural Language Processing
In phonology, the phonemes /k/ and /b/ are what differentiate the words “cat” and “bat”.
Morphology is about the structure of words, “jumped” is formed from the root word “jump” and
the suffix “ed”. Syntax is the structure of sentences from a set of rules, relationships of words and
the order, “the dog chased the cat” is formed/parsed in the order: subject – verb – object.
Pragmatics is the use of language by the speaker and interpretation of this language by the listener.
Discourse is how sentences are connected to construct meaning in a conversation/discourse.

Grammatical Structure
The grammatical structure of a sentence is called a constituency structure, a sentence composed of
constituents are identified by their function in the sentence and are used by probabilistic parsing
with the goal to identify the best syntax using a language model.

The grammatical structure of a sentence called dependency structure can also be represented by
defining the relationship between words instead of their function with dependencies in which the
grammatical relationship is indicated with directed edges as dependencies between words and each
word as a node, the relationship can be subject-object, modifier-head, or complement-verb.

CYK Parsing and PCFGs
Context-Free Grammar
A formalism to describe the syntax of language is called context-free grammar or CFG and are used
to parse and generate sentences following a set of rules, with each rule specifying a symbol non-
terminal (N) as the syntactic categories, and a terminal (α) as a set of words or sequence of
terminal and non-terminals.

CYK Algorithm
To determine the constituency structure of a sentence given a CFG in Chomsky Normal Form (CNF)
we use the dynamic-programming based bottom-up CYK algorithm as a parser for CFGs which
avoids recursion and solves by building larger constituent of smaller constituents.

Chomsky Normal Form
CNF is a specific from of CFG allowing rules of either N -> N N or N -> α and non-epsilon rules. One
way to convert CFG to CNF is splitting A -> B C D to A -> B X and X -> C D. Another way is by joining A
-> B C and B -> D to make A -> D C.
$6.65
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
s.2

Get to know the seller

Seller avatar
s.2 Rijksuniversiteit Groningen
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
4 year
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions