TEACHING PROGRAMMING WITH PYTHON FOR LINGUISTS: WHYS AND HOW-TOS

L. Ivashkevych
{"title":"TEACHING PROGRAMMING WITH PYTHON FOR LINGUISTS: WHYS AND HOW-TOS","authors":"L. Ivashkevych","doi":"10.20535/2617-5339.2019.3.165687","DOIUrl":null,"url":null,"abstract":"The article shows why it is worth introducing the basics of computational linguistics in general and programming as a method of the natural language processing in particular to the linguistics students. Computational linguistics has become the basis for solving many practical tasks in the language industry. Providing the linguistics students with the basics and the methods of the computational linguistics we widen their views on linguistics and show a perspective field of their possible future engagement to them. To get acquainted with computational linguistics, students have to learn how to work with corpora and acquire the basics of programming. This article demonstrates why Python is a good choice for linguists to start learning to programme. It also suggests an approach to teaching the fundamentals of the programming in Python for such students and gives step by step the main structures which can be used for processing texts or corpora. To such structures belong strings, variables, lists, loops, print-function, split-method, incrementation, and control structure. Combining these elements one can, for instance, split text into sentences or words, count words or sentences in text or count only some concrete elements in the text which satisfy a special condition. The article also outlines how to start working with input files. The further structures of Python are named, which can be introduced to the students next so that they become able to do more operations with texts. It is stressed that teaching programming is impossible without trying out every structure, so it is important to encourage the students to write their own code experimenting with each new element of Python and offer them enough practical tasks. Some examples of such tasks are illustrated in the article.","PeriodicalId":404912,"journal":{"name":"Advanced Linguistics","volume":"58 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-08-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Advanced Linguistics","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.20535/2617-5339.2019.3.165687","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

The article shows why it is worth introducing the basics of computational linguistics in general and programming as a method of the natural language processing in particular to the linguistics students. Computational linguistics has become the basis for solving many practical tasks in the language industry. Providing the linguistics students with the basics and the methods of the computational linguistics we widen their views on linguistics and show a perspective field of their possible future engagement to them. To get acquainted with computational linguistics, students have to learn how to work with corpora and acquire the basics of programming. This article demonstrates why Python is a good choice for linguists to start learning to programme. It also suggests an approach to teaching the fundamentals of the programming in Python for such students and gives step by step the main structures which can be used for processing texts or corpora. To such structures belong strings, variables, lists, loops, print-function, split-method, incrementation, and control structure. Combining these elements one can, for instance, split text into sentences or words, count words or sentences in text or count only some concrete elements in the text which satisfy a special condition. The article also outlines how to start working with input files. The further structures of Python are named, which can be introduced to the students next so that they become able to do more operations with texts. It is stressed that teaching programming is impossible without trying out every structure, so it is important to encourage the students to write their own code experimenting with each new element of Python and offer them enough practical tasks. Some examples of such tasks are illustrated in the article.
为语言学家教授python编程:原因和方法
这篇文章说明了为什么值得向语言学学生介绍计算语言学的基础知识,特别是作为自然语言处理方法的编程。计算语言学已经成为解决语言行业中许多实际任务的基础。为语言学学生提供计算语言学的基础知识和方法,拓宽了他们对语言学的看法,并为他们展示了一个未来可能参与的前景领域。为了熟悉计算语言学,学生必须学习如何使用语料库并掌握编程的基础知识。本文演示了为什么Python是语言学家开始学习编程的好选择。它还建议为这些学生教授Python编程基础的方法,并逐步给出可用于处理文本或语料库的主要结构。这些结构包括字符串、变量、列表、循环、print-function、split-method、递增和控制结构。例如,结合这些元素,可以将文本分成句子或单词,计算文本中的单词或句子,或者仅计算文本中满足特定条件的某些具体元素。本文还概述了如何开始处理输入文件。Python的进一步结构被命名,接下来可以介绍给学生,以便他们能够对文本进行更多的操作。需要强调的是,不尝试每个结构就不可能教授编程,因此鼓励学生编写自己的代码来试验Python的每个新元素并为他们提供足够的实际任务是很重要的。本文给出了这类任务的一些示例。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信