paper-with-me

Papers

Can LLMs Help Create Grammar?: Automating Grammar Creation for Endangered Languages with In-Context Learning

2024-12-14 · Piyapath T Spencer, Nanthipat Kongborrirak

Yes! In the present-day documenting and preserving endangered languages, the application of Large Language Models (LLMs) presents a promising approach. This paper explores how LLMs, particularly through in-context learning, can assist in generating grammatical information for low-resource languages with limited amount of data. We takes Moklen as a case study to evaluate the efficacy of LLMs in producing coherent grammatical rules and lexical entries using only bilingual dictionaries and parallel sentences of the unknown language without building the model from scratch. Our methodology involves organising the existing linguistic data and prompting to efficiently enable to generate formal XLE grammar. Our results demonstrate that LLMs can successfully capture key grammatical structures and lexical information, although challenges such as the potential for English grammatical biases remain. This study highlights the potential of LLMs to enhance language documentation efforts, providing a cost-effective solution for generating linguistic data and contributing to the preservation of endangered languages.

📄 PDF Abstract BibTeX arXiv:2412.10960

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context Learning

Similar Papers 제목 키워드 기반

Kajal: Extracting Grammar of a Source Code Using Large Language Models

2024-12-12 · Mohammad Jalili Torkamani

Understanding and extracting the grammar of a domain-specific language (DSL) is crucial for various software engineering tasks; however, manually creating these grammars is time-intensive and error-prone. This paper pres…

Few-Shot LearningPrompt Engineering

Can LLMs Really Learn to Translate a Low-Resource Language from One Grammar Book?

2024-09-27 · Seth Aycock, David Stap, Di wu, Christof Monz 외

Extremely low-resource (XLR) languages lack substantial corpora for training NLP models, motivating the use of all available resources such as dictionaries and grammar books. Machine Translation from One Book (Tanzer et …

Machine TranslationTranslation

TokDrift: When LLM Speaks in Subwords but Code Speaks in Grammar

2025-10-16 · Yinxi Li, Yuntian Deng, Pengyu Nie arxiv

Large language models (LLMs) for code rely on subword tokenizers, such as byte-pair encoding (BPE), learned from mixed natural language text and programming language code but driven by statistics rather than grammar. As …

Discovering Textual Structures: Generative Grammar Induction using Template Trees

2020-09-09 · Thomas Winters, Luc De Raedt

Natural language generation provides designers with methods for automatically generating text, e.g. for creating summaries, chatbots and game content. In practise, text generators are often either learned and hard to int…

Text Generation

HyGenar: An LLM-Driven Hybrid Genetic Algorithm for Few-Shot Grammar Generation

2025-05-22 · Weizhi Tang, Yixuan Li, Chris Sypherd, Elizabeth Polgreen 외

Grammar plays a critical role in natural language processing and text/code generation by enabling the definition of syntax, the creation of parsers, and guiding structured outputs. Although large language models (LLMs) d…

Code Generation