请输入您要查询的百科知识:

 

词条 Chart parser
释义

  1. Types of chart parsers

  2. See also

  3. References

  4. External links

{{Refimprove|date=December 2009}}

In computer science, a chart parser is a type of parser suitable for ambiguous grammars (including grammars of natural languages). It uses the dynamic programming approach—partial hypothesized results are stored in a structure called a chart and can be re-used. This eliminates backtracking and prevents a combinatorial explosion.

Chart parsing is generally credited to Martin Kay.[1]

Types of chart parsers

A common approach is to use a variant of the Viterbi algorithm. The Earley parser is a type of chart parser mainly used for parsing in computational linguistics, named for its inventor. Another chart parsing algorithm is the Cocke-Younger-Kasami (CYK) algorithm.

Chart parsers can also be used for parsing computer languages. Earley parsers in particular have been used in compiler compilers where their ability to parse using arbitrary Context-free grammars eases the task of writing the grammar for a particular language. However their lower efficiency has led to people avoiding them for most compiler work.

In bidirectional chart parsing, edges of the chart are marked with a direction, either forwards or backwards, and rules are enforced on the direction in which edges must point in order to be combined into further edges.

In incremental chart parsing, the chart is constructed incrementally as the text is edited by the user, with each change to the text resulting in the minimal possible corresponding change to the chart.

Chart parsers are distinguished between top-down and bottom-up, as well as active and passive.

See also

  • Brute force search

References

1. ^{{cite web |url=http://webdocs.cs.ualberta.ca/~lindek/650/papers/chartParsing.pdf |title=Chart Parsing |accessdate=20 November 2011 |deadurl=yes |archiveurl=https://web.archive.org/web/20150221021038/http://webdocs.cs.ualberta.ca/~lindek/650/papers/chartParsing.pdf |archivedate=21 February 2015 |df= }}

External links

  • [https://bishoy.github.io/ArcExtensionAlgorithm/ Bottom-up Chart parsing Web Implementation]
{{Parsers}}{{DEFAULTSORT:Chart Parser}}

2 : Natural language parsing|Parsing algorithms

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/28 7:28:04