paper-with-me

홈 › Papers

Prefix Parsing is Just Parsing

2026-04-23 · Clemente Pasti, Andreas Opedal, Timothy J. O'Donnell, Ryan Cotterell, Tim Vieira arxiv

Prefix parsing asks whether an input prefix can be extended to a complete string generated by a given grammar. In the weighted setting, it also provides prefix probabilities, which are central to context-free language modeling, psycholinguistic analysis, and syntactically constrained generation from large language models. We introduce the prefix grammar transformation, an efficient reduction of prefix parsing to ordinary parsing. Given a grammar, our method constructs another grammar that generates exactly the prefixes of its original strings. Prefix parsing is then solved by applying any ordinary parsing algorithm on the transformed grammar without modification. The reduction is both elegant and practical: the transformed grammar is only a small factor larger than the input, and any optimized implementation can be used directly, eliminating the need for bespoke prefix-parsing algorithms. We also present a strategy-based on algorithmic differentiation-for computing the next-token weight vector, i.e., the prefix weights of all one-token extensions, enabling efficient prediction of the next token. Together, these contributions yield a simple, general, and efficient framework for prefix parsing.

📄 PDF Abstract BibTeX arXiv:2604.21191

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Unfreeze with Care: Space-Efficient Fine-Tuning of Semantic Parsing Models

2022-03-05 · Weiqi Sun, Haidar Khan, Nicolas Guenon des Mesnards, Melanie Rubino 외

Semantic parsing is a key NLP task that maps natural language to structured meaning representations. As in many other NLP tasks, SOTA performance in semantic parsing is now attained by fine-tuning a large pretrained lang…

Language ModelingLanguage ModellingSemantic Parsing

Schema-Free Dependency Parsing via Sequence Generation

2022-01-28 · Boda Lin, Zijun Yao, Jiaxin Shi, Shulin Cao 외

Dependency parsing aims to extract syntactic dependency structure or semantic dependency structure for sentences. Existing methods suffer the drawbacks of lacking universality or highly relying on the auxiliary decoder. …

DecoderDependency ParsingLanguage Modelling

Schema-Free Dependency Parsing via Sequence Generation

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Dependency parsing aims to extract syntactic dependency structure or semantic dependency structure for sentences. Existing methods suffer the drawbacks of lacking universality or highly relying on the auxiliary decoder. …

DecoderDependency ParsingLanguage Modelling

Online Semantic Parsing for Latency Reduction in Task-Oriented Dialogue

2022-05-01 · ACL 2022 5 · Jiawei Zhou, Jason Eisner, Michael Newman, Emmanouil Antonios Platanios 외

Standard conversational semantic parsing maps a complete user utterance into an executable program, after which the program is executed to respond to the user. This could be slow when the program contains expensive funct…

Machine TranslationSemantic ParsingTranslation

iobes: Library for Span Level Processing

2020-11-01 · EMNLP (NLPOSS) 2020 11 · Brian Lester

Many tasks in natural language processing, such as named entity recognition and slot-filling, involve identifying and labeling specific spans of text. In order to leverage common models, these tasks are often recast as s…

named-entity-recognitionNamed Entity RecognitionNamed Entity Recognition (NER)slot-filling+1