Semantics has to do with meaning, the nature of which has been the subject of much philosophical debate: what is it exactly and how can it be represented? This essay is concerned with semantics from the perspective of Computational Linguistics, which is essentially concerned with building or attempting to build computational models of natural language. These Natural Language Processing or Understanding systems have a wide range of practical applications as well as providing insight into human understanding and perception.The prominance of semantics in the title can be taken as suggesting that it is indeed highly relevant to Computational Linguistics. However it is also implied, quite correctly, that semantics is not the only relevant area of interest. Natural Language systems usually have a number of different components and briefly outlining them here will help to put semantics in context. Phonetics is concerned with the analysis of spoken language.
It is generally considered to be a specialized area of research and many centres for Computational Linguistics deal mainly with written language.Morphology involves the analysis of the composition and (and also meaning) of individual words. Often at this stage that syntactic categories are assigned to words, since interpretation of affixes may depend on the category of a word. For example, drinks could be either a plural noun or a first person singular verb. Syntactic analysis imposes structure on a flat string of words according to the grammatical categories of words. The resulting structure is referred to as a parse.Ambiguity is a major problem for parsing and for Natural Language Processing in general, since it leads to multiple parses of a single sentence many of which can be later rejected Semantics is generally concerned with assigning meaning to the structures created by the syntactic parse. If no meaning can be assigned to the structure it is nonsensical and can be rejected; for example: “Colourless green ideas sleep furiously” (Chomsky 1957) is syntactically well-formed but semantically ill-formed.
Pragmatics can crudely be defined as an inferential process which relates a sentence to the context in which it occurs, in order to understand the conveyed meaning as opposed to the truth-conditional meaning. Both semantics and pragmatics need recourse to knowledge about the world or the domain being modelled. The difficulties that this requirement poses will be discussed below. Although the processes introduced above are often seen as constituting modules, which implies that they are discrete and self-contained, this perhaps reflects the computational requirements of a system rather than reality, since the boundaries are often fuzzy.In order to measure the importance of semantics in comparison to the other linguistic components of an NPL system we can look at what a system which stops short of incorporating semantic processes is capable of in comparison to one which does actually exploit semantics. Secondly to demonstrate the limitations of semantics we can briefly consider how pragmatics could extend the applications of a system.
Syntax and parsing is the most mature field of study in Computational Linguistics. Parsing uses a grammar with rules and a parser which matches rules to the sentence to infer structure into it.There are a number of different strategies: top-down and bottom-up, either of which can be combined with techniques for choosing between alternate paths. The resulting structure provides a basis for compositional semantic analysis.
Not all systems carry out syntactic parsing. Direct semantic parsing is however computationally expensive since the semantic component has to choose its own constituents and a significant amount of inferencing is invoked. Furthermore it is not always possible to extract meaning without refering to grammatical facts.A syntactic processor would have no means of determining which lexicon entry for table to select or for ruling out the incorrect structure assignments for the second example. Some form of semantic knowledge is required.Sublanguage systems (in MT) may represent an area of NLP application which functions adequately without incorporating semantic knowledge. Sublanguages characteristically have a well defined, restricted grammar and vocabulary. Consequently words only have the relevant (unambiguous) reading for the domain in question entered in the dictionary and the grammatical structures are more predictable and limited.
This overcomes the problem of ambiguity. Sublanguages which are resticted enough are hard to find and texts rarely remain completely within the confines of the sublanguage. If multiple or incorrect parses do arise there is no way of choosing between or eliminating them.
This brings us on to a discussion of semantics which as already hinted is vital to enable disambiguation. Semantics provides a way of selecting among competing syntactic analyses of sentences, since it has access to knowledge about what makes sense and consequently also what does not. It generally achieves this by providing a mechanism for filtering out inappropriate parses. This mechanism is often implemented in the form of semantic features made use of by selectional restrictions. Semantic features can be associated with every sense of a word in the lexicon and in addition to placing conditions on the features of other lexical items with which the word can combine they typically specify aspects of the meaning.(4) ball (spherical object / social event)(i) she danced at the ball(ii) I caught the ball(iii) I held a ball (I organised a social event / I held a spherical object)The social event interpretation of ball could be given the feature spatio-temporal and at could be marked in the lexicon as requiring a complement with the spatio-temporal feature. This would ensure the correct mapping between ball and its social event sense in the above example. A similar process could be used to ensure the correct sense of ball would be chosen in (ii).
Sentence (iii) is problematic since, even using semantic features, two semantic interpretations are possible. This is not an unusual situation; sentences frequently contain a number of ambiguous lexical items leading to an explosion of different possible sentence interpretations. Semantic features only take into account a very limited context.A further problem arises with features when the meaning of words is extended, that is when words are used metaphorically; a pervasive phenomena in laguage.(5) My car drinks petrolIf the verb drink is specified in the lexicon as requiring an animate subject the sentence will be rejected as nonsensical, when in fact it is not. Wilks (1975a) introduced the idea of preference semantics, whereby dispreferred readings can be allowed when the preferred readings are not present However, metaphors can be shown to be systematic and preference semantics does not exploit this fact.
Semantic features are a rather crude technique for resolving ambiguity and have significant problems, such as determining the correct set of features in the first place and the need to introduce increasingly finer grained features. Furthermore, very new word may require a new feature to be added to the lexicon. As the number of features grows the lexicon becomes unwieldy. Some more elegant way of representing meaning or knowledge is required.Semantics and Knowledge are inextricably linked. The amount of knowledge needed to understand even a simple children’s story is emense and the problems of knowledge representation are of central concern to Computational Linguistics and Artificial Intelligence.
No uniform semantics representation language has emerged and consequently there are different competing classes of representation. Each has advantages and disadvantages and useful areas of application.First order logic and equivalent expressions have become very popular as a way to represent natural languge meanings. Logic oriented programming languages such as Prolog reflect or are a contributing cause of this and first-order logic can also be used by systems for database retrieval. Opponents to logisism argue that logic is too neutral to represent natural language adequately and that many natural language meanings cannot be captured in logic. Nowhere is this more evident than in the area of quantification, where even with the help of the lambda operator representations become horifically complex and counter intuitive.
We will return to this point at the end of the section.A central concept to this approach is that of compositionality, a brainchild of the philosopher Frege, whereby the meaning of the whole is equivalent to the sum of the meanings of the parts. Montague developed this idea and demonstrated its usefulness for natural language analysis. Although his ideas were not directly suitable for implementation they have provided inspiration (c.f. new style categorial grammars). In compositional approaches syntactic and semantic processing are separate, but every syntactic processing rule has a corresponding semantic one (not all formalisms adhere to this).
Given a syntactically parsed sentence the meanings of individual words are looked up in the lexicon and then recursively recombined to form the meaning of the whole sentence. Quantified expressions cannot be accounted for naturally in strictly compositional systems. The scope of the quantifier in the example can be interpreted in different ways and is thus ambiguous.