Page 336 - AI Computer 10
P. 336

The boy in the red shirt is eating an ice cream.







                                      The    boy   in  the red  shirt  is  eating  an  ice  cream


                                                            Lexical Analysis


             u Syntactical Analysis/Parsing: Syntax refers to the structure of the text according to the rules of the language.
                Syntactic Analysis is the process of evaluating the grammatical structure  of sentences  and phrases. It
                establishes relationships between words and eliminates sentences that are logically incorrect.



                                                 Eating ice cream is the boy in the red shirt


                                                                Wrong



                                                The boy in the red shirt is eating an ice cream.


                                                                Right


             u Semantic Analysis: Semantics describe the meaning of words, phrases, sentences, and paragraphs in the
                text. Semantic Analysis attempts to understand the meaning of individual language selections, not syntactic
                correctness. However,  Semantic Analysis  doesn’t check  text before and  after  a selection  to clarify its
                meaning.
                For example, “The boy in  the red shirt is ice cream  eating.” passes a syntactic analysis because it’s a
                grammatically correct sentence. However, it fails a semantic analysis, as the sentence does not have any
                sensible meaning.


                                                 The boy in the red shirt is ice cream eating.


                                                                Wrong




                                                The boy in the red shirt is eating an ice cream.


                                                                Right


             u Discourse Integration: Discourse describes communication between two or more individuals. Discourse
                Integration in NLP analyses words and sentences before and after the given selection to understand the
                meaning of the sentence. This enables forming a coherent and consistent narrative.




                202
                202
   331   332   333   334   335   336   337   338   339   340   341