{"title":"A context sensitive tabular parsing algorithm","authors":"F. Hadlock","doi":"10.1145/98949.99012","DOIUrl":null,"url":null,"abstract":"Tlie parsing algorithm due to Younger is applica ble to any context free language but requires that the grammar be in Chomsky normal form. Resides es tablishing an 0 (n'*) upper bound to time complex ity needed to parse context free languages, Younger’s algorithm has the advantages that it docs not re quire the grammar to be unambiguous and that it degrades gracefully while parsing \"ungrammatical” strings. These are advantages desirable in processing nnlurnl language, if not coupled with the restriction that the grammar be in Chomsky normal form. In this article, a general tabular algorithm is de veloped which uses the tabular structure employed by Younger’s algorithm. Instead of nonterminal charac ters (or syntactic types) as table entries, a construct is used which is similar to the LR(0) items employed by Knulh’s LR(k) parsing algorithm, and by the Gra ham, Harrison, R u e e o algorithm. Graham, Harrison and Russo use these items as table entries, obviating the need to employ Chomsky normal form. The algo rithm presented in this article employs such items for not only the replacement phrase, but also the left and right context strings in context sensitive rules. The resulting algorithm is applicable to context sensitive grammars without erasure rules and is suitable as a platform for semantic case frame analysis of natural","PeriodicalId":409883,"journal":{"name":"ACM-SE 28","volume":"6 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1990-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM-SE 28","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/98949.99012","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2
Abstract
Tlie parsing algorithm due to Younger is applica ble to any context free language but requires that the grammar be in Chomsky normal form. Resides es tablishing an 0 (n'*) upper bound to time complex ity needed to parse context free languages, Younger’s algorithm has the advantages that it docs not re quire the grammar to be unambiguous and that it degrades gracefully while parsing "ungrammatical” strings. These are advantages desirable in processing nnlurnl language, if not coupled with the restriction that the grammar be in Chomsky normal form. In this article, a general tabular algorithm is de veloped which uses the tabular structure employed by Younger’s algorithm. Instead of nonterminal charac ters (or syntactic types) as table entries, a construct is used which is similar to the LR(0) items employed by Knulh’s LR(k) parsing algorithm, and by the Gra ham, Harrison, R u e e o algorithm. Graham, Harrison and Russo use these items as table entries, obviating the need to employ Chomsky normal form. The algo rithm presented in this article employs such items for not only the replacement phrase, but also the left and right context strings in context sensitive rules. The resulting algorithm is applicable to context sensitive grammars without erasure rules and is suitable as a platform for semantic case frame analysis of natural
杨格的解析算法适用于任何上下文无关的语言,但要求语法是乔姆斯基范式。Younger的算法的优点是,它不要求语法是明确的,而且在解析“不符合语法”的字符串时,它会优雅地降级,从而为解析上下文无关的语言建立一个0 (n'*)的时间复杂度上限。这些优点在处理自然语言时是可取的,如果不加上语法必须是乔姆斯基范式的限制的话。本文利用杨格算法所采用的表格结构,开发了一种通用的表格算法。代替非终结字符(或语法类型)作为表项,使用了一种类似于Knulh的LR(k)解析算法和Gra - ham, Harrison, R - u - e - o算法所使用的LR(0)项的结构。Graham, Harrison和Russo使用这些条目作为表项,避免了使用乔姆斯基范式的需要。本文提出的算法不仅将这些项用于替换短语,而且还用于上下文敏感规则中的左右上下文字符串。所得到的算法适用于上下文敏感的无擦除规则的语法,适合作为自然的语义用例框架分析平台