paper-with-me

홈 › Papers

Studying the Difference Between Natural and Programming Language Corpora

2018-06-06 · Casey Casalnuovo, Kenji Sagae, Prem Devanbu

Code corpora, as observed in large software systems, are now known to be far more repetitive and predictable than natural language corpora. But why? Does the difference simply arise from the syntactic limitations of programming languages? Or does it arise from the differences in authoring decisions made by the writers of these natural and programming language texts? We conjecture that the differences are not entirely due to syntax, but also from the fact that reading and writing code is un-natural for humans, and requires substantial mental effort; so, people prefer to write code in ways that are familiar to both reader and writer. To support this argument, we present results from two sets of studies: 1) a first set aimed at attenuating the effects of syntax, and 2) a second, aimed at measuring repetitiveness of text written in other settings (e.g. second language, technical/specialized jargon), which are also effortful to write. We find find that this repetition in source code is not entirely the result of grammar constraints, and thus some repetition must result from human choice. While the evidence we find of similar repetitive behavior in technical and learner corpora does not conclusively show that such language is used by humans to mitigate difficulty, it is consistent with that theory.

📄 PDF Abstract BibTeX arXiv:1806.02437

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Modelling Natural Language, Programs, and their Intersection

2018-06-01 · NAACL 2018 6 · Graham Neubig, Miltiadis Allamanis

As computers and information grow a more integral part of our world, it is becoming more and more important for humans to be able to interact with their computers in complex ways. One way to do so is by programming, but …

Semantic ParsingText Generation

Using Natural Sentences for Understanding Biases in Language Models

2022-05-12 · Sarah Alnegheimish, Alicia Guo, Yi Sun

Evaluation of biases in language models is often limited to synthetically generated datasets. This dependence traces back to the need for a prompt-style dataset to trigger specific behaviors of language models. In this p…

Sentence

Using Natural Sentence Prompts for Understanding Biases in Language Models

2022-01-16 · ACL ARR January 2022 1 · Anonymous

Evaluation of biases in language models is often limited to synthetically generated datasets. This dependence traces back to the need of prompt-style dataset to trigger specific behaviors of language models. In this pape…

Sentence

Using Natural Sentence Prompts for Understanding Biases in Language Models

2022-07-01 · NAACL 2022 7 · Sarah Alnegheimish, Alicia Guo, Yi Sun

Evaluation of biases in language models is often limited to synthetically generated datasets. This dependence traces back to the need of prompt-style dataset to trigger specific behaviors of language models. In this pape…

Sentence

MultiLingPoT: Enhancing Mathematical Reasoning with Multilingual Program Fine-tuning

2024-12-17 · Nianqi Li, Zujie Liang, Siyu Yuan, Jiaqing Liang 외

Program-of-Thought (PoT), which aims to use programming language instead of natural language as an intermediate step in reasoning, is an important way for LLMs to solve mathematical problems. Since different programming …

Mathematical Reasoning