100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Samenvatting

Samenvatting - Computational Grammar (LIX025B05)

Beoordeling
-
Verkocht
-
Pagina's
2
Geüpload op
23-03-2024
Geschreven in
2022/2023

Samenvatting van alles wat in het vak besproken is.









Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Documentinformatie

Geüpload op
23 maart 2024
Aantal pagina's
2
Geschreven in
2022/2023
Type
Samenvatting

Onderwerpen

Voorbeeld van de inhoud

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.
€5,49
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
s.2

Maak kennis met de verkoper

Seller avatar
s.2 Rijksuniversiteit Groningen
Bekijk profiel
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
0
Lid sinds
4 jaar
Aantal volgers
0
Documenten
2
Laatst verkocht
-

0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen