![]() 33
Pronoun
:
me | I | you | it | . . .
Name
:
Mike | Albert | Stephanie |
Conjunction
:
and | or | but |
ProperNoun
:
Alaska | Baltimore | Chicago | Garuda | . . .
Article
:
the | a | an | this | . . .
Preposition
:
from | to | on | near | . . .
Digit
:
0
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
Tahap selanjutnya adalah membuat grammar. Contoh grammar:
S
NP VP
I
+
prefer a morning flight
NP
Pronoun
I
|
ProperNoun
Los Angeles
|
Det Nominal
a
+
flight
Nominal
Noun Nominal
morning + flight
|
Noun
flights
VP
Verb
do
|
Verb NP
prefer a morning flight
|
Verb NP PP
leave Boston in the morning
|
Verb PP leave
in the morning
PP
Prep NP
from Los Angeles
2.4.4
Analisis Morfologi
Untuk menganalisis kalimat input-an, program pertama kali
memecah kalimat tersebut ke dalam kata tunggal. Program memeriksa
|