Encyclopedia > Earley parser

  Article Content

Earley parser

The Earley parser is a type of chart parser mainly used for parsing in computational linguistics, named for its inventor.

Earley parsers execute in cubic time in the worst case, whereas top-down or bottom-up parsers in the worst case take exponential time. However, since the input in computational linguistics is generally small (i.e. most sentences have no more than about a dozen words), Earley parsers often give worse performance than exponential time algorithms.

Unlike top-down or bottom-up parsers, Earley parsers can handle recursive phase structure rules such as:

a --> a b
without getting into an infinite loop. On the other hand, there are still rules on which they will loop, such as:
a(X) --> a(f(X))

In other words they can handle Context-free languages but not Unrestricted languages. Parsing an Unrestricted language without getting into an infinite loop is provably an NP-complete problem.



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Great River, New York

... at 40°43'29" North, 73°9'36" West (40.724626, -73.159916)1. According to the United States Census Bureau, the town has a total area of 13.1 km² (5.1 ...

 
 
 
This page was created in 32.7 ms