06.03.2013 Views

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

psychological aspects of underst<strong>and</strong>ing the natural languages. The first step to<br />

underst<strong>and</strong> natural languages is parsing, which analyses the syntactic structure<br />

of sentences. It serves two basic purposes. First it determines the linguistic<br />

relations such as subject-verb, etc. <strong>and</strong> finally checks the syntactical<br />

correctness of the sentences. Generally, the parser learns the sentence as a<br />

structured object (tree/graph) for subsequent semantic analysis.<br />

18.2 Syntactic Analysis<br />

In this section we shall discuss three distinct methods for syntactic analysis of<br />

sentences. These are: i) by using context free grammar, ii) by employing<br />

transition network <strong>and</strong> iii) by using context sensitive grammar.<br />

18.2.1 Parsing Using Context<br />

Free Grammar<br />

A context free grammar G is generally defined by a 4 tuple, given by G =<br />

{Vn,Vt,S,P } , where Vn is a set of non-terminal symbols, Vt denotes a set of<br />

terminal symbols, S denotes the starting symbol <strong>and</strong> P represents a set of<br />

production rules that cause a change. It may further be noted that Vn ∪ Vt<br />

denotes the entire set of symbols. The above definition of context free<br />

grammar is prevalent in automata theory <strong>and</strong> compilers. The tuples in G are<br />

illustrated below with an example.<br />

Example 18.1: Let us consider the following sentence <strong>and</strong> illustrate the<br />

parameters involved in the definition of G in connection with the problem of<br />

natural language underst<strong>and</strong>ing.<br />

Sentence: The man killed a deer.<br />

Here, Vt = {the, man, killed, a, deer}<br />

Vn = {noun-phrase, verb-phrase, article, noun, ---}.<br />

S = initial symbol<br />

P: 1) S → noun-phrase verb-phrase,<br />

2) noun-phrase →noun,<br />

3) noun-phrase → article noun,<br />

4) verb-phrase → verb,<br />

5) verb-phrase → verb noun-phrase,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!