On the Intersection of Context-Free and Regular Languages

2Citations
Citations of this article
16Readers
Mendeley users who have this article in their library.

Abstract

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 ε-arcs. While it is possible to remove ε-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 ε-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. https://github.com/rycolab/bar-hillel.

Cite

CITATION STYLE

APA

Pasti, C., Opedal, A., Pimentel, T., Vieira, T., Eisner, J., & Cotterell, R. (2023). On the Intersection of Context-Free and Regular Languages. In EACL 2023 - 17th Conference of the European Chapter of the Association for Computational Linguistics, Proceedings of the Conference (pp. 737–749). Association for Computational Linguistics (ACL). https://doi.org/10.18653/v1/2023.eacl-main.52

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free