Condividi
Fr. 55.50
, Martin Weisser, Martin (University of Salzburg Weisser, Weisser Martin
Python Programming for Linguistics and Digital Humanities - Applications for Text-Focused Fields
Inglese · Tascabile
Spedizione di solito entro 1 a 3 settimane (non disponibile a breve termine)
Descrizione
Informationen zum Autor Martin Weisser is an independent researcher. He has previously held several academic appointments, including Visiting Professor at the University of Salzburg, Austria, Professor of Linguistics and Applied Linguistics in Foreign Languages at Guangdong University, China, and Adjunct Professor of English Linguistics at the University of Bayreuth, Germany. He is the author of Practical Corpus Linguistics: An Introduction to Corpus-Based Language Analysis (Wiley Blackwell, 2016) and the developer of several software tools for language analysis. Klappentext Learn how to use Python for linguistics and digital humanities research, perfect for students working with Python for the first timePython programming is no longer only for computer science students; it is now an essential skill in linguistics, the digital humanities (DH), and social science programs that involve text analytics. Python Programming for Linguistics and Digital Humanities provides a comprehensive introduction to this widely used programming language, offering guidance on using Python to perform various processing and analysis techniques on text. Assuming no prior knowledge of programming, this student-friendly guide covers essential topics and concepts such as installing Python, using the command line, working with strings, writing modular code, designing a simple graphical user interface (GUI), annotating language data in XML and TEI, creating basic visualizations, and more.This invaluable text explains the basic tools students will need to perform their own research projects and tackle various data analysis problems. Throughout the book, hands-on exercises provide students with the opportunity to apply concepts to particular questions or projects in processing textual data and solving language-related issues. Each chapter concludes with a detailed discussion of the code applied, possible alternatives, and potential pitfalls or error messages.* Teaches students how to use Python to tackle the types of problems they will encounter in linguistics and the digital humanities* Features numerous practical examples of language analysis, gradually moving from simple concepts and programs to more complex projects* Describes how to build a variety of data visualizations, such as frequency plots and word clouds* Focuses on the text processing applications of Python, including creating word and frequency lists, recognizing linguistic patterns, and processing words for morphological analysis* Includes access to a companion website with all Python programs produced in the chapter exercises and additional Python programming resourcesPython Programming for Linguistics and Digital Humanities: Applications for Text-Focused Fields is a must-have resource for students pursuing text-based research in the humanities, the social sciences, and all subfields of linguistics, particularly computational linguistics and corpus linguistics. Zusammenfassung Learn how to use Python for linguistics and digital humanities research, perfect for students working with Python for the first timePython programming is no longer only for computer science students; it is now an essential skill in linguistics, the digital humanities (DH), and social science programs that involve text analytics. Python Programming for Linguistics and Digital Humanities provides a comprehensive introduction to this widely used programming language, offering guidance on using Python to perform various processing and analysis techniques on text. Assuming no prior knowledge of programming, this student-friendly guide covers essential topics and concepts such as installing Python, using the command line, working with strings, writing modular code, designing a simple graphical user interface (GUI), annotating language data in XML and TEI, creating basic visualizations, and more.This invaluable text explains the basic tools students will need to p...
Sommario
List of Figures xi
About the Companion Website xii
1 Introduction 1
1.1 Why Program? Why Python? 1
1.2 Course Overview and Aims 4
1.3 A Brief Note on the Exercises 5
1.4 Conventions Used in this Book 6
1.5 Installing Python 6
1.5.1 Installing on Windows 6
1.5.2 Installing on the Mac 7
1.5.3 Installing on Linux 8
1.6 Introduction to the Command Line/Console/Terminal 8
1.6.1 Activating the Command Line on Windows 9
1.6.2 Activating the Command Line on the Mac or Linux 9
1.7 Editors and IDEs 10
1.8 Installing and Setting Up WingIDE Personal 10
1.9 Discussions 11
2 Programming Basics I 15
2.1 Statements, Functions, and Variables 15
2.2 Data Types - Overview 17
2.3 Simple Data Types 18
2.3.1 Strings 18
2.3.2 Numbers 20
2.3.3 Binary Switches/Values 21
2.4 Operators - Overview 21
2.4.1 String Operators 21
2.4.2 Mathematical Operators 22
2.4.3 Logical Operators 24
2.5 Creating Scripts/Programs 25
2.6 Commenting Your Code 26
2.7 Discussions 28
3 Programming Basics II 33
3.1 Compound Data Types 33
3.2 Lists 35
3.3 Simple Interaction with Programs and Users 37
3.4 Problem Solving and Damage Control 38
3.4.1 Getting Help from Your IDE 38
3.4.2 Using the Debugger 39
3.5 Control Structures 40
3.5.1 Conditional Statements 41
3.5.2 Loops 42
3.5.3 while Loops 43
3.5.4 for Loops 44
3.5.5 Discussions 45
4 Intermediate String Processing 53
4.1 Understanding Strings 53
4.2 Cleaning Up Strings 54
4.3 Working with Sequences 55
4.3.1 Overview 55
4.3.2 Slice Syntax 56
4.4 More on Tuples 57
4.5 'Concatenating' Strings More Efficiently 59
4.6 Formatting Output 60
4.6.1 Using the % Operator 60
4.6.2 The format Method 61
4.6.3 f- Strings 61
4.6.4 Formatting Options 62
4.7 Handling Case 62
4.8 Discussions 63
5 Working with Stored Data 71
5.1 Understanding and Navigating File Systems 71
5.1.1 Showing Folder Contents 72
5.1.2 Navigating and Creating Folders 74
5.1.3 Relative Paths 75
5.2 Stored Data 76
5.3 Opening and Closing Files 76
5.3.1 File Opening Modes 77
5.3.2 File Access Options 77
5.4 Reading File Contents 78
5.5 Error Handling 79
5.6 Writing to Files 82
5.7 Working with Folders and Paths 83
5.7.1 The os Module 83
5.7.2 The Path Object of the libpath Module 84
5.8 Discussions 86
6 Recognising and Working with Language Patterns 93
6.1 The re Module 93
6.2 General Syntax 94
6.3 Understanding and Working with the Match Object 94
6.4 Character Classes 96
6.5 Quantification 97
6.6 Masking and Using Special Characters 98
6.7 Regex Error Handling 98
6.8 Anchors, Groups and Alternation 99
6.9 Constraining Results Further 101
6.10 Compilation Flags 101
6.11 Discussions 102
7 Developing Modular Programs 109
7.1 Modularity 109
7.2 Dictionaries 109
7.3 User- defined Functions 111
7.4 Understanding Modules 112
7.5 Documenting Your Module 115
7.6 Installing External Modules 11
Dettagli sul prodotto
Autori | , Martin Weisser, Martin (University of Salzburg Weisser, Weisser Martin |
Editore | Wiley, John and Sons Ltd |
Lingue | Inglese |
Formato | Tascabile |
Pubblicazione | 18.02.2024 |
EAN | 9781119907947 |
ISBN | 978-1-119-90794-7 |
Pagine | 288 |
Categorie |
Scienze naturali, medicina, informatica, tecnica
> Informatica, EDP
> Informatica
Scienze umane, arte, musica > Scienze linguistiche e letterarie Literaturwissenschaft, Informatik, Python (Programmiersprache), Programmierung, python, Literature, Linguistics, Computerlinguistik, computer science, Sprachwissenschaften, Computational Linguistics, Literatur- u. Kulturtheorie, Literary & Cultural Theory, Programmierung u. Software-Entwicklung, Programming & Software Development |
Recensioni dei clienti
Per questo articolo non c'è ancora nessuna recensione. Scrivi la prima recensione e aiuta gli altri utenti a scegliere.
Scrivi una recensione
Top o flop? Scrivi la tua recensione.