pith. sign in

arxiv: 2408.01849 · v2 · pith:2TQP4WAAnew · submitted 2024-08-03 · 💻 cs.FL

A Tree Sampler for Bounded Context-Free Languages

classification 💻 cs.FL
keywords samplingtreescontext-freereplacementwithoutalgebraicbcflbcfls
0
0 comments X
read the original abstract

In the following paper, we present a simple method for sampling trees with or without replacement from BCFLs. A BCFL is a context-free language (CFL) corresponding to an incomplete string with holes, which can be completed by valid terminals. To solve this problem, we introduce an algebraic datatype that compactly represents candidate parse forests for porous strings. Once constructed, sampling trees is a straightforward matter of sampling integers uniformly without replacement, then lazily decoding them into trees.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.