版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、review of type-logical semantics one of the many roles of linguistics is to address the semantics of natural languages, that is, the meaning of sentences in natural languages. an important part of the meaning of sentences can be characterized by stating the conditions that need to hold fo review of
2、type-logical semantics by b.carpenter riccardo pucella stephen chong department of computer science cornell university january30,2021 introduction one of the many roles of linguistics is to address the semantics of natural languages,that is,the meaning of sentences in natural languages.an important
3、part of the meaning of sentences can be characterized by stating the conditions that need to hold for the sentence to be true.necessarily,this approach,called truth-conditional semantics,disre-gards some relevant aspects of meaning,but has been very useful in the analysis of natural languages.struct
4、uralist views of language(the kind held by saussure,for instance,and later chomsky)have typically focused on phonology, morphology,and syntax.little progress,however,has been shown towards the structure of meaning,or content. a common tool for the study of content,and structure in general for that m
5、atter,has been logic.during most of the20th century,an important role of logic has been to study the structure of content of mathematical languages. many logicians have moved on to apply the techniques developed to the analysis of natural languagesfrege,russell, carnap,reichenbach,and montague.an ea
6、rly introduction to such classical approaches can be found in2. as an illustration of the kind of problems that need to be addressed,consider the following examples.the follow-ing two sentences assert the existence of a man that both walks and talks: some man that walks talks some man that talks wal
7、ks the situations with respect to which these two sentences are true are the same,and hence a truth-conditional semantics needs to assign the same meaning to such sentences.ambiguities arise easily in natural languages: every man loves a woman there are at least two distinct readings of this sentenc
8、e.one says that for every man,there exists a woman that he loves,and the other says that there exists a woman that every man loves.other problems are harder to qualify. consider the following two sentences: tarzan likes jane tarzan wants a girlfriend the?rst sentence must be false if there is no jan
9、e.on the other hand,the second sentence can be true even if no woman exists. those examples are extremely simple,some might even say naive,but they exemplify the issues for which a theory of natural language semantics must account.a guiding principle,apocryphally due to frege,in the study of semanti
10、cs is the so-called fregean principle.essentially,it can be stated as“the meaning of a complex expression should be a function of the meaning of its parts.”such a principle seems required to explain how natural languages can be learned. since there is no arbitrary limit on both the length and the nu
11、mber of new sentences human beings can understand, some general principle such as the above must be at play.moreover,since it would not be helpful to require an in?nite 1 one of the many roles of linguistics is to address the semantics of natural languages, that is, the meaning of sentences in natur
12、al languages. an important part of the meaning of sentences can be characterized by stating the conditions that need to hold fo number of functions to derive the meaning of the whole from the meaning of the parts,a notion such as recursion must be at play as well. that there is a recursive principle
13、a la frege at play both in syntax and semantics is hardly contested.what is contested is the interplay between the two.the classic work by chomsky6advocated essentially the autonomy of syntax with respect to semantics.chomskys grammars are transformational:they transform the“surface”syntax of a sent
14、ence to extract its so-called deep structure.the semantics is then derived from the deep structure of the sentence. some accounts of the chomsky theory allows for a fregean principle to apply at the level of the deep structure,while more recent accounts slightly complicate the picture.a different ap
15、proach is to advocate a close correspondence between syntax and semantics.essentially,the syntax can be seen as a map showing how the meaning of the parts are to be combined into the meaning of the whole. the latter approach to semantics relies on two distinct developments.first,it is based on a kin
16、d of semantic anal-ysis of language originating mainly with the work of montague9.his was the?rst work that developed a large scale semantic description of natural languages by translation into a logical language that can be given a semantics using traditional techniques.the second development emerg
17、ed from a particular syntactic analysis of language.during his analysis of logic,which led to development of the-calculus,curry noticed that the types he was assigning to-terms could also be used to denote english word classes7.for example,in john snores loudly,the word john has type, snores has typ
18、e,and loudly has type.independently,lambek introduced a calculus of syntactic types, distinguishing two kinds of implication,re?ecting the non-commutativity of concatenation8.the idea was to push all the grammar into the dictionary,assigning to each english word one or more types,and using the calcu
19、lus to decide whether a string of words is a grammatically well-formed sentence.this work derived in part from earlier work by ajdukiewicz1and bar-hillel4. this book,“type-logical semantics”by carpenter,explores this particular approach.essentially,it relies on techniques from type theory:we assign
20、a type(or more than one)to every word in the language,and we can check that a sentence is well-formed by performing what amounts to type-checking.in fact,it turns out that we can take the type-checking derivation proving that a sentence has the right type,and use the derivation to derive the semanti
21、cs of the sentence.in the next sections,we will introduce the framework,and give simple examples to highlight the ideas. carpenter pushes these ideas quite far,as we shall see when we cover the table of contents.we conclude with some opinions on the book. to semantics. the?rst problem we need to add
22、ress is how to describe the semantics of language.we will follow in the truth-conditional tradition and model-theoretic ideas and we start with?rst-order logic.roughly speaking,?rst-order logic provides one with constants denoting individuals,and predicates over such individuals.simple example shoul
23、d il-lustrate this.consider the sentence tarzan likes jane.assuming constants and,and a predicate, this sentence corresponds to the?rst-order logic formula.the sentence everyone likes jane can be expressed as.this approach of using?rst-order logic to give semantics is quite straightforward. unfortun
24、ately,for our purposes,it is also quite de?cient.let us see two reasons why that is.first,recall that we want a compositional principle at work in semantics.in other words,we want to be able to derive the meaning of tarzan likes jane from the meaning of tarzan and jane,and the meaning of likes.this
25、sounds straightforward.however, the same principle should apply to the sentence tarzan and kala like jane,corresponding to the?rst-order formula .giving a compositional semantics seems to require giving a semantics to the extract like jane.what is the semantics of such a part of speech?first-order l
26、ogic cannot answer this easily.in-formally,like jane should have as semantics something that expects an individual(say)and gives back the formula .a second problem is that the grammatical structure of a sentence can be lost during translation.this can lead to wild differences in semantics for simila
27、r sentences.for instance,consider the following sentences: tarzan likes jane. an apeman likes jane. every apeman likes jane. no apeman likes jane. these sentences can be formalized as such in?rst-order logic,respectively: 2 one of the many roles of linguistics is to address the semantics of natural
28、languages, that is, the meaning of sentences in natural languages. an important part of the meaning of sentences can be characterized by stating the conditions that need to hold fo ,or equivalently, there seems to be a discrepancy among the logical contributions of the subjects in the above sentence
29、s.there is a distinction in the?rst-order logic translation of these sentences that is not expressed by their grammatical form. it turns out that there is a way to solve those problems,by looking at an extension of?rst-order logic,known as higher-order logic3.let us give enough theory of higher-orde
30、r logic to see how it can be used to assign semantics to(a subset of)a natural language.this presentation presupposes a familiarity with both?rst-order logic and the -calculus5.1there is a slight difference in our approach to?rst-order logic and our approach to higher-order logic. in the former,form
31、ulas,which represents properties of the world and its individuals,are the basic units of the logic.in higher-order logics,terms are the basic units,including constants and functions,with formulas explicitly represented as boolean-valued functions. we start by de?ning a set of types that will be used
32、 to characterize the well-formedness of formulas,as well as derive the models.we assume a set of basic types,where is the type of boolean values, and is the type of individuals.(in?rst-order logic,the type is not made explicit.)the set of types is the smallest set such that,and if.a type of the form
33、 is a functional(or higher-order)type,the elements of which map objects of type to objects of type. the syntax of higher-order logic is de?ned as follows.assume for each type a set of variables and a set of constants of that type.the set of terms of type is de?ned as the smallest set such that: , ,
34、if and,and if,and. what are we doing here?we are de?ning a term language.first-order logic introduces special syntax for its logical connectives(,).it turns out,for higher-order logic,that we do not need to do that,we can simply de?ne constants for those operators.(we will call these logical constan
35、ts,because they will have the same interpretation in all models.)we will assume the following constants,at the following types:a constant of type and a constant of type,the interpretation of which should be clear,a family of constants each of type,which checks for equality of two elements of type,an
36、d a family of constants each of type,used to capture universal quanti?cation.the idea is that quanti?es over objects of type.in?rst-order logic,is true if for every possible individual,replacing by in yields a true formula.note that binds the variable in?rst-order logic.in higher-order logic,where t
37、here is only as a binder, we write the above as,which is true if is true for all objects of type. this de?nes the syntax of higher-order logic.the models of higher-order logic are generalizations of the relational structures used to model?rst-order logic.a(standard)frame for higher-order logic is sp
38、eci?ed by giving for each basic type a domain of values of that type.these extend to functional types inductively:for a type ,that is,the set of all functions from elements of to elements of.let.we also need to given an interpretation for all the constants,via a function assigning to every constant
39、of type an object of type.(we simply write when the type is clear from the context.)hence,a model for higher-order logic is of the form.we extend the interpretation to all the terms of the language.to deal with variables,we de?ne an assignment to be a function such that if.we denote the assignment t
40、hat maps to and to.we de?ne the denotation of the term with respect to the model and assignment as: if, if, ,and such that. one of the many roles of linguistics is to address the semantics of natural languages, that is, the meaning of sentences in natural languages. an important part of the meaning
41、of sentences can be characterized by stating the conditions that need to hold fo standard frames are subject to restrictions.for instance,the domain corresponding to boolean values must be a two-element domain,such as true false.moreover,they must give a?xed interpretation to the logical constants(i
42、.e.,the conjunction operator should actually behave as a conjunction operator).hence,we require: false if true true if false true if true and true false otherwise true if false otherwise true if true for all false otherwise one can check that if we de?ne as,it has the expected interpretation.note th
43、at we will often use the abbreviations for,and for. a formula of higher-order logic is a term of type.we say that a model satis?es a formula if true in the model.two terms are said to be logically equivalent if they have the same interpretation in all models.one can check,for instance,that and are l
44、ogically equivalent,as are and(that is,where every occurrence of is replaced by). for example,consider the following simple three individual model,with constants and . false true true true false false true false true this model satis?es the term(kala likes tarzan)as true.it also satis?es the term(th
45、ere is someone jane likes).it does not satisfy the term (everyone likes himself/herself). we will use higher-order logic to express our semantics.the idea is to associate with every sentence(or part of speech)a higher-order logic term.we can then use the semantics of higher-order logic to derive the
46、 truth value of the sentence.consider the examples at the beginning of the section.we assume constants,and of type,and a constant of type.we can translate the sentence tarzan likes jane as ,as in?rst-order logic.but now we can also translate the part of speech like jane independently as. for a more
47、interesting example,consider the treatment of noun phrases as given at the beginning of the section. the solution to the problem of losing the grammatical structure was solved by russell by treating all noun phrases as though they were functions over their verb phrases.this is analogous to what is a
48、lready happening with the de?nition of in higher-order logic,which has type.such generalized quanti?er takes a property of an individual(a property has type)and produces a truth valuein the case of, the truth value is true if every individual has the supplied property.a similar abstraction can be ap
49、plied to a noun position.we de?ne a generalized determiner as a function taking a property stating a restriction on the quanti?ed individuals,and returning a generalized quanti?er obeying that restriction.hence,a generalized determiner has type .consider the following generalized determiners,used ab
50、ove: 4 one of the many roles of linguistics is to address the semantics of natural languages, that is, the meaning of sentences in natural languages. an important part of the meaning of sentences can be characterized by stating the conditions that need to hold fo one can check that the sentence an a
51、peman likes jane becomes,that ev-ery apeman likes jane becomes,and that no apeman likes jane becomes .the subject is interpreted as,and respectively.the verb phrase likes jane is given the expected semantics.what about the original sentence tarzan likes jane.according to the above,we should be able
52、to give a semantics to tarzan(when used as a subject)with a type.one can check that if we interpret tarzan as,we indeed get the required behavior.hence,we see that the noun phrase can be given the uniform type, and that higher-order logic can be used to derive a uniform,compositional semantics. .fro
53、m syntax we have seen in the previous section how we can associate to sentences a semantics in higher-order logic.more importantly,we have seen how we can assign a semantics to sentence extracts,in a way that does capture the intuitive meaning of the sentences.the question at this point is how to de
54、rive the higher-order logic term corresponding to a given sentence or sentence extract. the grammatical theory we use to achieve this is categorial grammars,originally developed by ajdukiewicz 1and later bar-hillel4.in fact,we will use a generalization of their approach due to lambek8.the idea behin
55、d categorial grammars is simple.we start with a set of categories,each category representing a grammatical function.for instance,we can start with the simple categories np representing noun phrases,n representing nouns, and s representing sentences.given categories and,we can form the functor catego
56、ries and.the category represents the category of syntactic units that take a syntactic unit of category to their right to form a syntactic unit of category.similarly,the category represents the category of syntactic units that take a syntactic unit of category to their left to form a syntactic unit
57、of category.consider some examples.the category represents the category of prenominal modi?ers,such as adjectives:they take a noun on their right and form a noun. the category represents the category of postnominal modi?ers.the category is the category of intransitive verbs:they take a noun phrase o
58、n their left to form a sentence.similarly,the category represents the category of transitive verbs:they take a noun phrase on their right to then expect a noun phrase on their left to form a sentence. before deriving semantics,lets?rst discuss well-formedness,as this was the original goal for such grammars. the idea was to associate to every word(or complex sequence of words that constitute a single lexical entry)one or more categories.we will call this the dictionary,
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 深度解析(2026)《GBT 33543.2-2017海洋能术语 第2部分:调查和评价》(2026年)深度解析
- 深度解析(2026)《GBT 33486-2017船舶与海上技术 大型游艇 FRP艇结构防火》(2026年)深度解析
- 医疗数据安全成熟度评估:区块链驱动的患者授权机制
- 医疗数据安全意识提升:区块链实践
- 医疗数据安全合规性风险管控机制
- 【9历第三次月考】安徽省六安市金安区六安皋城中学2025-2026学年九年级上学期12月月考历史试题
- 医疗数据安全分级模型与区块链实现
- 西安市庆安初级中学2026届高三数学第一学期期末质量跟踪监视模拟试题含解析
- 2026届黑龙江省哈尔滨第九中学生物高二上期末综合测试模拟试题含解析
- 2026届山东德州市高二数学第一学期期末联考试题含解析
- 真空乳化设备维护与清洁操作手册
- 上海财经大学2026年辅导员及其他非教学科研岗位人员招聘备考题库带答案详解
- 2026湖北恩施州建始县教育局所属事业单位专项招聘高中教师28人备考笔试试题及答案解析
- 2025贵州铜仁市“千名英才·智汇铜仁”本地引才413人参考笔试题库及答案解析
- 心肺康复课件
- 2025中原农业保险股份有限公司招聘67人笔试参考题库附带答案详解(3卷)
- 2026年内蒙古商贸职业学院单招职业技能测试题库及参考答案详解一套
- 退赃后赔偿协议书
- 骶部炎性窦道的护理
- 多元催化体系下羊毛脂转酯化制备胆固醇的工艺解析与效能探究
- 2026福建春季高考语文总复习:名篇名句默写(知识梳理+考点)原卷版
评论
0/150
提交评论