{"title":"语法:通过示例定义语法","authors":"H. Lieberman, B. Nardi, David J. Wright","doi":"10.1145/286498.286504","DOIUrl":null,"url":null,"abstract":"Parsers are powerful tools for computer understanding of text, whether the language is a natural language or a formal language. To make the computational power of these tools fully available to an end user, a parser should be userextensible. Until now, a user who wished to control a parser was forced to write or edit a grammar, a text file containing rules. Editing grammars is often difftcult and error-prone for end users since the effect of writing specific rules, and interaction between rules, can often be unclear. Grammex [“Grammars by Example”] is the first direct manipulation interface designed to allow ordinary users to define grammars interactively. Instead of writing a grammar in an abstract rule language, the user presents concrete examples of text that he or she would like the parser to recognize. The user describes the text by selecting substrings, and choosing possible interpretations of the text from popup menus of suggestions heuristically computed by Grammex. Grammex compiles grammar rules that can be used as the input to a traditional parser. PARSERS AND GRAMMARS Parsers are beginning to be deployed as an integral part d the text editing facilities available across all computer applications. Examples are Apple Data Detectors [4] and the Intel Selection Recognition Agent [5]. Apple Data Detectors finds phone numbers, email addresses and URLs in free text These facilities allow automatic recognition of simple, commonly occurring text patterns such as e-mail addresses, URLs, or date formats. Typically, the set of patterns recognized by the parser is to be programmed by a highly expert user, a grammar writer skilled in computational linguistics. The end user is merely expected to invoke the parser and use its results. However, no set of patterns supplied by experts can be","PeriodicalId":153619,"journal":{"name":"CHI 98 Conference Summary on Human Factors in Computing Systems","volume":"24 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1998-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"11","resultStr":"{\"title\":\"Grammex: defining grammars by example\",\"authors\":\"H. Lieberman, B. Nardi, David J. Wright\",\"doi\":\"10.1145/286498.286504\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Parsers are powerful tools for computer understanding of text, whether the language is a natural language or a formal language. To make the computational power of these tools fully available to an end user, a parser should be userextensible. Until now, a user who wished to control a parser was forced to write or edit a grammar, a text file containing rules. Editing grammars is often difftcult and error-prone for end users since the effect of writing specific rules, and interaction between rules, can often be unclear. Grammex [“Grammars by Example”] is the first direct manipulation interface designed to allow ordinary users to define grammars interactively. Instead of writing a grammar in an abstract rule language, the user presents concrete examples of text that he or she would like the parser to recognize. The user describes the text by selecting substrings, and choosing possible interpretations of the text from popup menus of suggestions heuristically computed by Grammex. Grammex compiles grammar rules that can be used as the input to a traditional parser. PARSERS AND GRAMMARS Parsers are beginning to be deployed as an integral part d the text editing facilities available across all computer applications. Examples are Apple Data Detectors [4] and the Intel Selection Recognition Agent [5]. Apple Data Detectors finds phone numbers, email addresses and URLs in free text These facilities allow automatic recognition of simple, commonly occurring text patterns such as e-mail addresses, URLs, or date formats. Typically, the set of patterns recognized by the parser is to be programmed by a highly expert user, a grammar writer skilled in computational linguistics. The end user is merely expected to invoke the parser and use its results. However, no set of patterns supplied by experts can be\",\"PeriodicalId\":153619,\"journal\":{\"name\":\"CHI 98 Conference Summary on Human Factors in Computing Systems\",\"volume\":\"24 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1998-04-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"11\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"CHI 98 Conference Summary on Human Factors in Computing Systems\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/286498.286504\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"CHI 98 Conference Summary on Human Factors in Computing Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/286498.286504","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 11
摘要
无论语言是自然语言还是形式语言,解析器都是计算机理解文本的强大工具。为了使这些工具的计算能力完全提供给最终用户,解析器应该是用户可扩展的。到目前为止,希望控制解析器的用户必须编写或编辑语法,即包含规则的文本文件。对于最终用户来说,编辑语法通常很困难,而且容易出错,因为编写特定规则的效果以及规则之间的交互通常是不清楚的。Grammex[“语法示例”]是第一个直接操作接口,旨在允许普通用户交互式地定义语法。用户不是用抽象的规则语言编写语法,而是提供他或她希望解析器识别的具体文本示例。用户通过选择子字符串来描述文本,并从Grammex启发式计算的建议弹出菜单中选择对文本的可能解释。Grammex编译的语法规则可以用作传统解析器的输入。解析器和语法解析器开始被部署为所有计算机应用程序中可用的文本编辑工具的一个组成部分。例如Apple Data detector[4]和Intel Selection Recognition Agent[5]。Apple Data detector可以在免费文本中找到电话号码、电子邮件地址和url。这些功能允许自动识别简单的、常见的文本模式,如电子邮件地址、url或日期格式。通常,解析器识别的模式集将由高度专业的用户(精通计算语言学的语法编写者)编写。最终用户只需要调用解析器并使用其结果。然而,专家提供的任何模式集都无法做到这一点
Parsers are powerful tools for computer understanding of text, whether the language is a natural language or a formal language. To make the computational power of these tools fully available to an end user, a parser should be userextensible. Until now, a user who wished to control a parser was forced to write or edit a grammar, a text file containing rules. Editing grammars is often difftcult and error-prone for end users since the effect of writing specific rules, and interaction between rules, can often be unclear. Grammex [“Grammars by Example”] is the first direct manipulation interface designed to allow ordinary users to define grammars interactively. Instead of writing a grammar in an abstract rule language, the user presents concrete examples of text that he or she would like the parser to recognize. The user describes the text by selecting substrings, and choosing possible interpretations of the text from popup menus of suggestions heuristically computed by Grammex. Grammex compiles grammar rules that can be used as the input to a traditional parser. PARSERS AND GRAMMARS Parsers are beginning to be deployed as an integral part d the text editing facilities available across all computer applications. Examples are Apple Data Detectors [4] and the Intel Selection Recognition Agent [5]. Apple Data Detectors finds phone numbers, email addresses and URLs in free text These facilities allow automatic recognition of simple, commonly occurring text patterns such as e-mail addresses, URLs, or date formats. Typically, the set of patterns recognized by the parser is to be programmed by a highly expert user, a grammar writer skilled in computational linguistics. The end user is merely expected to invoke the parser and use its results. However, no set of patterns supplied by experts can be