On the Intersection of Context-Free and Regular Languages
Pasti, Clemente, Opedal, Andreas, Pimentel, Tiago, Vieira, Tim, Eisner, Jason, Cotterell, Ryan
–arXiv.org Artificial Intelligence
The Bar-Hillel construction is a classic result in formal language theory. It shows, by a simple construction, that the intersection of a context-free language and a regular language is itself context-free. In the construction, the regular language is specified by a finite-state automaton. However, neither the original construction (Bar-Hillel et al., 1961) nor its weighted extension (Nederhof and Satta, 2003) can handle finite-state automata with $\varepsilon$-arcs. While it is possible to remove $\varepsilon$-arcs from a finite-state automaton efficiently without modifying the language, such an operation modifies the automaton's set of paths. We give a construction that generalizes the Bar-Hillel in the case where the desired automaton has $\varepsilon$-arcs, and further prove that our generalized construction leads to a grammar that encodes the structure of both the input automaton and grammar while retaining the asymptotic size of the original construction.
arXiv.org Artificial Intelligence
May-18-2023
- Country:
- Europe
- France
- Grand Est > Meurthe-et-Moselle
- Nancy (0.04)
- Île-de-France > Paris
- Paris (0.04)
- Grand Est > Meurthe-et-Moselle
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Sweden > Uppsala County
- Uppsala (0.04)
- Switzerland > Zürich
- Zürich (0.04)
- United Kingdom
- England > Cambridgeshire
- Cambridge (0.04)
- Scotland > City of Edinburgh
- Edinburgh (0.04)
- England > Cambridgeshire
- France
- North America > United States
- California > Los Angeles County
- Los Angeles (0.14)
- Hawaii > Honolulu County
- Honolulu (0.04)
- Oregon > Multnomah County
- Portland (0.04)
- California > Los Angeles County
- Europe
- Genre:
- Research Report (0.50)
- Technology: