Martin Weisser

Essential Programming for Linguistics

Sprachen: Englisch. 23,2 cm / 15,8 cm / 1,3 cm ( B/H/T )
Buch (Softcover), 184 Seiten
EAN 9780748638567
Veröffentlicht November 2009
Verlag/Hersteller Edinburgh University Press

Auch erhältlich als:

eBook (pdf)
0,00
30,50 inkl. MwSt.
Teilen
Beschreibung

Edinburgh Advanced Textbooks in Linguistics Series editors: Peter Ackema and Mitsuhiko Ota This series supports the study of core topics that form substantial and identifiable parts of Linguistics degree courses as taught in the later years of undergraduate study. Each volume provides an in-depth introduction to a particular linguistic subdiscipline, while also engaging with recent research on the subject. Essential Programming for Linguistics Martin Weisser A gentle introduction to programming for students and researchers interested in conducting computer-based analysis in linguistics, this book is an ideal starting point for linguists approaching programming for the first time. Assuming no background knowledge of programming, the author introduces basic notions and techniques needed for linguistic programming and helps readers to develop their understanding of electronic texts. The book includes many examples based on diverse topics in linguistics in order to demonstrate the applicability of the concepts at the heart of programming. Practical examples are designed to help the reader to: *Identify basic issues in handling language data, including Unicode processing *Conduct simple analyses in morphology/morphosyntax, and phonotactics *Understanding techniques for matching linguistic patterns *Learn to convert data into formats and data structures suitable for linguistic analysis *Create frequency lists from corpus materials to gather basic descriptive statistics on texts *Understand, obtain and 'clean up' web-based data *Design graphical user interfaces for writing more efficient and easy-to-use analysis tools. Two different types of exercise help readers to learn to interpret and understand illustrative sample code, and then develop algorithmic thinking and solution strategies through turning a series of instructions into sample programs. Readers will be equipped with the necessary tools for designing their own extended projects. Key Features: *Ide

Portrait

Martin Weisser is Associate Professor in English Language and Linguistics at the City University of Hong Kong

Inhaltsverzeichnis

1 Introduction; 1.1 Why Use Perl?; 1.2 The Command Prompt/Console; 1.3 How to Navigate a File System; 1.3.1 Understanding File System Hierarchies; 1.3.2 Navigating Through File Systems; 1.4 Plain Text Editors; 1.5 Installing Perl and Perl/Tk on Your Computer; 1.5.1 Installing Perl; 1.5.2 Installing the Perl/Tk Toolkit; 2 Basic Programming Concepts - 1; 2.1 How to Issue Instructions (Statements); 2.2 How to Store Data in Memory (Variables); 2.3 What to Store & How (Basic Data Types); 2.3.1 Scalars; 2.3.2 Arrays; 2.3.3 Hashes; 2.4 Understanding About Defaults (Special Variables); 2.5 Making Your Code More Intelligible (Comments); 3 Basic Programming Concepts - 2; 3.1 Making Decisions (Flow Control); 3.2 Doing Repetitive Tasks Automatically (Basic for Loops); 3.2.1 The for Loop; 3.2.2 Iterating over Array Elements; 3.2.3 The foreach Loop; 3.3 More Repetitiveness (Further Loops); 3.3.1 The while loop; 3.3.2 The until Loop; 3.3.3 Controlling Loops Further; 4 Working with Text (Basic String Handling); 4.1 Chomping & Chopping; 4.2 Extracting a Substring from a Longer String; 4.3 'Adding' Strings Together; 4.4 Establishing the Length of a String; 4.5 Handling Case; 5 Working with Stored Data (Basic File Handling); 5.1 Opening a Filehandle; 5.2 Tweaking Your Input and/or Output Options; 5.3 Reading from a Filehandle; 5.3.1 File Processing in List Context; 5.3.2 File Processing in Line Context; 5.3.3 Slurping in Scalar Context; 5.4 Default Filehandles; 5.5 Writing to a Filehandle; 5.6 Working with Directories; 6 Identifying Textual Patterns (Basic & Extended Regular Expressions); 6.1 Matching; 6.2 Character Classes; 6.3 Quantification; 6.4 Grouping, Alternation & Anchoring; 6.5 Memorising; 6.6 Modifiers; 6.7 Extended Regular Expressions;7 Modifying Textual Patterns (Substitution & Transliteration); 7.1 Substitution; 7.2 Greediness; 7.3 A Very Brief Introduction to Markup Languages (SGML, HTML & XML); 7.4 Transliteration; 8 Getting Things Into the Right Order (Basic Sorting); 8.1 Keys & Sort Order; 8.2 'Vocabulary Handling' (Creating Simple Word Lists); 9 Elementary Texts Stats (Creating Basic Frequency Lists); 9.1 Complex Sorting; 9.2 Word Frequency Lists; 9.3 Implementing a List; 9.4 Sorting & Printing the List; 10 More Repetitiveness or How to Tie Things Together (Introducing Modularity); 10.1 Functions & Subroutines; 10.1.1 Creating Your Own Subroutines; 10.1.2 Calling a Subroutine; 10.1.3 Localising Variables & Being Strict With Yourself; 10.2 References & Modules; 10.2.1 Basic Named References; 10.2.2 Anonymous References; 10.2.3 What Do Modules Look Like?; 10.2.4 Importing & Using Modules; 10.2.5 Writing a Simplistic HTML Page Downloader and Parser; 11 Objects; 11.1 OO Concepts; 11.2 Creating an Object in Perl; 11.3 Creating a Regular Verb Object; 11.4 Instantiating the Verb Object; 11.5 Creating Appropriate Accessor Methods; 12 Getting Graphical (Simple User Interfaces); 12.1 Elements of a GUI; 12.2 Basic Steps in Creating Tk Programs; 12.3 Adding Widgets; 12.4 The GUI Concordancer - An Advanced Example; 12.4.1 Adding a Menu Bar & the Remaining GUI Elements; 12.4.2 Programming the Functionality; 12.4.3 Handling the Text Widget; 13 Conclusion; Appendix A - Sample Solutions; Appendix B - How to Get Further Help on Perl; References

Hersteller
Libri GmbH
Europaallee 1

DE - 36244 Bad Hersfeld

E-Mail: gpsr@libri.de

Das könnte Sie auch interessieren

Orwell George Orwell
Animal Farm
eBook (epub)
Sofort lieferbar (Download)
0,00
Rachel Reid
Heated Rivalry
eBook (epub)
Sofort lieferbar (Download)
5,33
Rachel Reid
The Long Game
eBook (epub)
Sofort lieferbar (Download)
5,33
Herman Melville
Moby Dick - classic
eBook (epub)
Sofort lieferbar (Download)
0,00
Elle Kennedy
The Deal
eBook (epub)
Sofort lieferbar (Download)
0,99
Rachel Reid
Game Changer
eBook (epub)
Sofort lieferbar (Download)
5,33
Andy Weir
Project Hail Mary
eBook (epub)
Sofort lieferbar (Download)
8,99
Emily Brontë
Wuthering Heights
eBook (epub)
Sofort lieferbar (Download)
0,00
Rachel Reid
Tough Guy
eBook (epub)
Sofort lieferbar (Download)
5,33
Caro Claire Burke
Yesteryear
eBook (epub)
Sofort lieferbar (Download)
10,69
Rachel Reid
Role Model
eBook (epub)
Sofort lieferbar (Download)
5,33
Sofort lieferbar (Download)
0,00
Rachel Reid
Common Goal
eBook (epub)
Sofort lieferbar (Download)
5,33
Rachel Reid
Game Changers Volume 2
eBook (epub)
Sofort lieferbar (Download)
11,06
Charlotte Bronte
Jane Eyre
eBook (epub)
Sofort lieferbar (Download)
0,00
Alison Espach
The Wedding People
eBook (epub)
Sofort lieferbar (Download)
9,99
Rachel Reid
Game Changers Collection
eBook (epub)
Sofort lieferbar (Download)
11,06
Bram Stoker
Dracula
eBook (epub)
Sofort lieferbar (Download)
0,00
Ali Hazelwood
Two Can Play
eBook (epub)
Sofort lieferbar (Download)
4,49
Elle Kennedy
The Mistake
eBook (epub)
Sofort lieferbar (Download)
6,49
Rachel Khong
Real Americans
eBook (epub)
Sofort lieferbar (Download)
8,99
Martha Wells
Platform Decay
eBook (epub)
Sofort lieferbar (Download)
16,99
Rachel Reid
The Shots You Take
eBook (epub)
Sofort lieferbar (Download)
6,14
Rebecca Yarros
Fourth Wing
eBook (epub)
Sofort lieferbar (Download)
6,49
Ali Hazelwood
The Love Hypothesis
eBook (epub)
Sofort lieferbar (Download)
0,99
Julia Quinn
Bridgerton Collection Volume 1
eBook (epub)
Sofort lieferbar (Download)
2,99
James S. A. Corey
The Faith of Beasts
eBook (epub)
Sofort lieferbar (Download)
14,99
Robert Jackson Bennett
The Tainted Cup
eBook (epub)
Sofort lieferbar (Download)
0,99
Fredrik Backman
My Friends
eBook (epub)
Sofort lieferbar (Download)
3,86
Elle Kennedy
The Score
eBook (epub)
Sofort lieferbar (Download)
6,49
Tim Sullivan
The Dentist
eBook (epub)
Sofort lieferbar (Download)
0,99
Rachel Reid
Time to Shine
eBook (epub)
Sofort lieferbar (Download)
6,14
Rebecca Yarros
Iron Flame
eBook (epub)
Sofort lieferbar (Download)
6,49
Liz Tomforde
In Her Own League
eBook (epub)
Sofort lieferbar (Download)
5,99
Richard Osman
The Impossible Fortune
eBook (epub)
Sofort lieferbar (Download)
8,99
Colleen Hoover
Finding Cinderella
eBook (epub)
Sofort lieferbar (Download)
0,00