phrases (NP), prepositional phrases (PP);
• nodes for accepting sentences.
The structure of the graph is given by the class
of sentences to be processed. Many different NEPs
could be designed for the parsing of the same type of
syntactic structures, but we are looking for the best
NEP for every structure in terms of number of nodes
and computational efficiency.
Moreover, since the structure we are working with
has just two types of sub-structures, namely NP and
V , at least three specialized nodes are needed, one for
sub-components of NP (just one element in a minimal
NP), one for the recognition and labelling of NP and
the other one for the recognition and analysis of V .
The sub-components of NP include nodes for lexical
units – N for a noun and ART for an article. Since a
node for packing the final output is also necessary, a
graph with at least four nodes has to be designed.
Our device will consist of the following nodes: a)
a node for recognizing articles, ART b) three proces-
sors for labelling nouns Nc, N p, Nv, c) a node for
recognizing nominal phrases, NP, d) a node for an-
alyzing verbal structures, V , e) a node for analyzing
nominal phrases, NP and f) a node for labelling sen-
tences, P. Beside these nodes we will also need an
output node.
In the input filter of specialized nodes, the only
elements accepted will be those that can be part of
phrases they can recognize. In the output filter of
these nodes, only labelled phrases will be allowed to
pass and be sent to the other filters.
To perform the recognition process, two types of
alphabets are necessary: V , the alphabet of the in-
put symbols, which are terminal strings, i.e., lexical
items, and Σ the alphabet of grammatical types sym-
bols – which correspond to grammatical categories –
plus feature symbols. For the simple sentences we
are dealing with, we recognize several strings sym-
bols belonging to Σ
∗
which are needed to process the
sentence: [ ]
N
, [ ]
V
, [ ]
ART
, [ ]
NP
.
In order to model the subject-verb agreement,
some of these symbols will be provided with morpho-
logical markers. First of all, two different marks will
be established for the category [V ] in order to distin-
guish between the two different forms of the English
verb in present: s stands for the general form, and p
for the third person. In this way, when the node re-
ceives a lexical item x, it analyzes it, and inserts the
grammatical types symbols giving us [x]
vs
or [x]
vp
.
In order to fulfill the agreement with the verb, [N]
has to be recognized with the same parameters as the
verb and moreover with some that give us the agree-
ment with the article, {c, p, v}. On the other hand, in
order to model agreement inside a phrase, we intro-
duce separate nodes for the same phrase with different
morphological characteristics.
For distinguishing the article “a” from the articles
“an” and “the”, the feature [ART ] will be [ ]
a1
for “a”,
[ ]
a2
for “an” and [ ]
a3
for “the”, where the absence
of any symbol means it works for both singular and
plural. If the agreement is not accomplished inside
NP or between NP at the left of the verb and the verb
itself, then the sentence will not be recognized.
For delimiting the phrases as a group of several
elements belonging to Σ, and sentences as a group of
phrases, we introduce in our NEP a rule that will iso-
late these symbols from the ones belonging to the al-
phabet V .
With the elements we have just explained, a NEP
for sentence analysis can be defined as follows:
Definition 2. A NEP for the analysis of simple sen-
tences [[NP]V[NP]] is a general structure:
Γ = (V, Σ, {ART, N
v
, N
c
, N
p
, V, NP, P, Out}, G)
where:
• V is the input vocabulary,
• Σ is the grammatical type vocabulary,
• {ART , N
v
, N
c
, N
p
, V , NP, P, Out} are the node
processors N
1
, N
2
, . . . , N
7
, Out of the network with
the following definition. For every node N
i
= (M
i
,
A
i
, PI
i
, PO
i
) :
– M
i
is the finite set of evolution rules of the form:
i. a → [a]
n
, where a ∈ {V ∪ Σ}
∗
(insertion rule
with n indicating the indexes of the node),
ii. a → ε, where a ∈ V (deletion rule in which all
elements of V are erased), or
iii. a, b → [ab]
n
, where a, b ∈ V ∪ Σ (adjunction
rule in which two elements coming from dif-
ferent nodes are wrapped together);
– A
i
is the set of strings over V in the initial con-
figuration,
– PI
i
are the input filters over {V ∪ Σ}
∗
, and
– PO
i
are the output filters over {V ∪ Σ}
∗
.
• Out is the output node that has a special input
filter that compares the initial phrase shuffled with
Σ
∗
, with the words that are trying to enter the node
(Inp tt Σ
∗
= inputword)
• G = (V, Ev) is the network graph where:
– V = {N
1
, N
2
, . . . , N
7
, Out} are its nodes, and
– Ev = (N
1
N
6
, N
2
N
6
, N
3
N
6
, N
4
N
6
, N
5
N
6
, N
6
N
7
,
N
7
Out) are the arcs.
The computation works almost like in a regular
NEP, combining evolutionary steps and communica-
tion steps. Moreover, the system is totally parallel,
even in the input mechanism, and every node applies,
during evolutionary steps, as many rules as it can.
ICAART 2009 - International Conference on Agents and Artificial Intelligence
622