Teaching programming with Python for linguistics students: whys and how-tos

Вантажиться...
Ескіз

Дата

2019

Науковий керівник

Назва журналу

Номер ISSN

Назва тому

Видавець

КПІ ім. Ігоря Сікорського

Анотація

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, splitmethod, 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.

Опис

Ключові слова

computational linguistics, linguistics students, teaching programming, methods of the computational linguistics, basic structures in Python, комп’ютерна лінгвістика, студенти-лінгвісти, навчання програмування, методи комп’ютерної лінгвістики, основні структури мови програмування Python

Бібліографічний опис

Ivashkevych, L. Teaching programming with Python for linguistics students: whys and how-tos / Lesia Ivashkevych // Advanced Linguistics. – 2019. – № 3. – Pр. 4-12. – Bibliogr.: 9 ref.