Once a parse tree has been built using syntaic analysis, the semantics, or meaning, of the sentence needs to be found. This is a very difficult task as it requires world knowledge.
The need for semantic information is illustrated by trying to follow a recipe. Knowing that the recipe is correctly written does not help understand how to it carry out. Knowledge of the relationships between food and it's preparation is needed; the semantics contained with the recipe.
Another way of putting the difference between syntax and semantics into context is with the following two sentences:
The first sentence is syntactically correct in modern English, but after semantic analysis can be seen to be meaningless, whereas the second sentence, although made from the same words, can be dismissed as nonsense by simply regarding it's syntax.
There are no steadfast ways of representing world knowledge or extracting the semantics from a sentence except for very simple domains, although First Order Predicate Calculus seems to be dominating as a representation method
Remember you can visit the Message Store to discuss this essay. Connect($db); $result = mysql_query("SELECT children FROM threads WHERE id=628",$db) or die( mysql_error() ); $children = mysql_fetch_row($result); if ($children[0]<=1) { ?> Comments are always welcome!. } else { ?> There are already = $children[0]-1 ?> replies in the thread, why not join in? } Disconnect($db); ?>
Footer(); ?>