Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

every chapter slides of natural processing language, Slides of Natural Language Processing (NLP)

every chapter slides of natural processing language

Typology: Slides

2022/2023

Uploaded on 10/10/2023

varun-14
varun-14 🇮🇳

1 document

1 / 354

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download every chapter slides of natural processing language and more Slides Natural Language Processing (NLP) in PDF only on Docsity!

  • Module #1, Lecture #

Recap from the Previous Lecture

  • Course Handout Discussion
  • Project Groups

What is NLP?

● Branch of Artificial Intelligence

● Combination of linguistics (understanding how languages work) and computer science (building systems to solve natural language- related problems).

History of NLP

Georgetown Experiment

● Demonstration of machine translation performed by IBM at Georgetown University in 1954. ● Involved translation of 60+ sentences from Russian to English. ● Consisted of 6 grammar rules and 250 lexical items (stems + endings) ● Initially, it led to lots of research money to be used by governments for research in MT and NLP. However, real progress was much slower!

Syntactic Structures and Conceptual Dependency

Theory

● In 1957, Noam Chomsky came up with Syntactic Structures, which revolutionized linguistics and grammar. ○ Chomsky used phrase structure rules to generate new sentences. ○ Gave examples of grammatically correct sentences without any meaning. Example: “Colourless green ideas sleep furiously” ○ Advocated a separation of syntax from semantics

From Rules to Data

● Starting from the 1980s, we have seen a movement from using rule- based NLP systems to statistical systems due to the presence of data. ● With data, we can use probability theory to build reasonably robust systems for language modeling, machine translation, etc. ○ Example: Which one is correct in each pair and why? ■ I saw an elephant. Vs. I saw an equipment. ■ An European war is currently going on. Vs. A European war is currently going on. ■ Tell me something. Vs. Say me something. ● All this is possible because of probability.

Example of Machine Translation

● Earlier approach - Rule-based Machine Translation ● Linguists would create multiple rules in source language and target language. ● People would use dictionaries to map to root words, morphemes, etc. ● Limited in scope. Could not account for many challenges in MT.

Stages of NLP

Stages of Processing

● Phonetics and phonology ● Morphology ● Lexical Analysis ● Syntactic Analysis ● Semantic Analysis ● Pragmatics and Discourse

Morphology

● Word formation from root words and morphemes ○ Eg. singular - plural (teacher + s = teachers), gender (lion + ess = lioness), tense (listen + ing = listening), etc. ● First step in NLP - extract the morphemes of the given word ● Languages rich in morphology - Dravidian languages (Eg. Kannada, Tamil, Telugu, etc.) ○ Example: Maadidhanu - Maadu (root verb) + past tense + male singular ● Languages poor in morphology - English ○ Example: Did - Do (root verb) + past tense

Lexical Analysis

● Words have different meanings. ● Meanings have different words. Example: ● Where there’s a will… ● There are many relatives

Syntactic Analysis

  • Consider the sentence “I like mangoes” S

NP

N V

N

VP

NP

mangoes

I like

Syntactic Analysis

● S -> NP VP

● NP -> N

● VP -> V NP

● N -> Noun (mangoes) / Pronoun (I) ● VP -> Verb (like)