0% found this document useful (0 votes)
6 views13 pages

NLP Grammatical Structure Analysis

The document discusses the structure and components of Natural Language Processing (NLP) with a focus on grammatical rules and constituent phrases. It outlines the roles of different phrases such as noun phrases (NP), verb phrases (VP), and prepositional phrases (PP) in sentence construction. Additionally, it introduces context-free grammar (CFG) and its application in defining grammatical structures.

Uploaded by

btech10220.23
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views13 pages

NLP Grammatical Structure Analysis

The document discusses the structure and components of Natural Language Processing (NLP) with a focus on grammatical rules and constituent phrases. It outlines the roles of different phrases such as noun phrases (NP), verb phrases (VP), and prepositional phrases (PP) in sentence construction. Additionally, it introduces context-free grammar (CFG) and its application in defining grammatical structures.

Uploaded by

btech10220.23
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Module

that
NLP iu a wActical eepanent
qramatical dthueln ot a keteue
aeuteuee wto g wettheut
bhhae to mndoufo
agutaetie elat elatialiip behseew ttean
them
wile
Hemenes

Baer Jewres

NLP tasks hat weqine hame


maeline thauLatiew
ingamatiew ertraetio
Quutiew amsne
w wtiue weros are
to tem Auhuees maud oo wed ae
ti

dyotastie catituauey idea aat ghy


werds (eentituent) ca be
toehame
esudluenu

Part hama inuotnes


eenatikentw
langg
dutenee
fe rammaticad nole
Nun: deg, eat, labte, chaiu, Rneli
Vuha' chae, find, aeid,
Acjties : Long, all,

Prenn : he, ahe, it


Paepeidiou: iw,

Aenole hat
wed buit withiw a

Aentue
Naun PAhase (NP):

Jhe guit bsomw fon


dhe herse
the higl-elassapat Auet as
Venb Phraae (VP):

he cat

þeutiew hsae (PP),:


-lhe han

staeu
vddjuctine Phrau (AdP):
bmall

Aderb Phrase (AdwP):

nath seo

he
but alo

Paraen: teeus dhe elatienkip


Aetween a, enealu a the stuelae whe
each odde eheent a werol auol eac
nefeundi ayntaetie dependmeiaa.
CouatitwmA
sthete
Paraeui Emphaaiye dhe heiraehi'al
Zhe sentees them lewn
)

ito euted contituent(shrae) anol


his tuclie iw a Rarse thee
Tip olouw fanser i start hiylat lemal
hle auol bheak it dobw ito coipersnta

ito hiyher-keuel stualure.


Casteat Fue Gawnars

sthuetb iw atual
qramner (CFG), ale caled hae stute

Jhe Pa to bae the


eentient stueluie.
Ceutbnt-fee graMas vconsila
Huls which
be
lhat
ghepet and aded

walea odutisa,
NP Det Nonuaal
ducoluaby L Wouulnal ’ Weun /Nouulnal Nouun

Noun’

Jhe sybel -lhat ae ued i cEA


CFl ane

·Jeniaanle
Naw leiral
t the
werde iw the lagge ane ealled
tuminal
leaicou s the set ed ulu that

det"
aykat aud it
et a "et the"

o-kemihali the aymbeb that enees


abstatiow enes lhe teminal
are calle me-teminaly

abene ename,
NP ’ Det Nomlhal.
" NP nentumaal.

Ghamwa Rulu
S’ NP VP
Naun fasar| bueye|Eipl
NP> Broenour| Aofu-Neun
Dt NoM Veab’
NOM ’ Neun NOM Neu
latu di'et
VP’ Wb | Yeub NP)ub PP||enen
Werb NP PP

PP’ apautis NP Det hatlaJau j4eee


Ya thu deuteweeD a

NP

NP

NOM

NOM Naw

Nou

bie dev the Semtee


he
meng
ule and etnkgns beicau.

CFG is to

Auteee be deined (hae Wee car

Jetu, tt
detew is hew caled a 24unatical
sheet etemee otheee
Lkqaatial.
Fomal Grauman

fham haameteui N, I,5, R ( alao ealled 4-tuple

N: a cet ad yen eainale. dynbals


: a et temiual
R: a Aet
A’
mew-terminal,

ngfuite at Vetiug UN)


a menhe

tase

Juebauk; A copu w weliel eney sutemee s


anetated th
a dheebank.
mada
yheebane
aser Bee
awting fare eandceeted by dman
Peun Ineebak maect.
(N, 1,
2, R, S)
2 = that, dhis, a, lhe, man, book, Hight, mal,
mcude, ead , doest
N {S, NP, NOM, VP, Det, Neun, Vub, Aue I
S: S
R
S ’ NP VP
S ’ Ae NP VP
S VP
NP’ Det NOM
NOM Non NDM Nen

VP -> Verb 1 Veab Ne


Set that ) tiu la |-he

Ves bk ]ralude< ead


Aua does

Ginew Sente
Senteuee
S
VP
NoM

Man 4his Neunv


bonk.
’ Panse uee iu met nigue . Mutihle fanse
tbue enist wdeitenes

and
atuig a nana
aud' nalug all Femible tus
Hhat sthi

’ 6tat wtt he
doun t the yes eaves , asu'n
iput oam ae oleied assntat
gm Ihe staut
the

ayindol. s.
&tps:
lo Jnitial thees:
s t with ss by vchackung
checkng ahamma
gramma us
the V eft hand sau (LHS)

the udu wtl tAey teach POs wagetis


at the bottom,
3. Mateh lyputt Reject bieeu shese leanes doe not
mateh he ipell 2infptwordi.
ALarch
doww fagg downada
at the tof aud
- u ig taput at ach otep.
lerion
S P VP

NP et NOM
NDM vus-’ boek /ineludajread
NOM Aeun NOM Aux doees.
VP Venb
VP

Suteuce botk lhat

VP
At NP
diccasd iu
-luee becauee
Sentene doe nal

&hp2: Gro e li

Det
NOM Vee vab
iseand
a detemlne
S
VP
VP NP.
Verb
Xdisad, deru do
ue will get lhe
wll Can dutheu

Veab but olaang


deined.

NP

book
1
hat
Betten
’ Uhe farae staut with the put oda
pranda.

tnput sentenee.

a tne

3" Fit Rules : Lok laces w he


ee RHS the

Norinat

Nominad Noun NP
Nowlna
Newn
Jhat hat Nw
book

Nowinl

Wauha

NOu
Verb
VP

Verb
Bet Klowinal
boek
4hat Newn

Seutee

batom up haser

a. Shitt eduee harser


3. PcGf Pacbabikistie Conleetgew gana
w
'Neal Pe)
CNCCeheaay

You might also like