python for linguists

1,951 views
1,831 views

Published on

python, linguistics

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,951
On SlideShare
0
From Embeds
0
Number of Embeds
39
Actions
Shares
0
Downloads
30
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

python for linguists

  1. 1. Python Programming for Linguists A 10-Min.Introduction Shu-Kai Hsieh Department of English, National Taiwan Normal University 2008
  2. 2. Why Programming?
  3. 3. or, Why Programming for Linguists? it’s just like second language acquisition ;-) linguists are the best programmers ;-) Linguistics 2.0: are you ready to be updated? empiricalistic,data-oriented, so what? it’s quite different now. From corpus-based to Google-based:(n-grams/collocation/lexicography/translation/textual pattern mining/multilingual applications...) IN ONE SENTENCE: transition from local data processing task to global language resources collaboration work
  4. 4. Why Python? because NASA, YouTube, Google like it? easy-to-learn? free of charge? cross-platform? okok, you need the true answer ? ...
  5. 5. It’s a Personal Choice.
  6. 6. The Philosophy Hidden Behind (C,PHP,Python,C#,and Java) vs. (C++,Perl,Javascript and Ruby)1 (Perl)There’s More Than One Way To Do It. (Python)Explicit is better than implicit, i.e., There should be one – and preferably only one – obvious way to do it. 1 http://lightyror.thegiive.net/2008/01/ruby-python.html
  7. 7. Some Technical Advantages embeddable (e.g., RPy, Praat-Py) NLTK: great modules for linguists With Parrot, we maybe use all (Perl) modules for Python.
  8. 8. Our Goals From small script (pattern extraction, frequency, etc) to bigger linguistic applications (Word Sketch Engine). Start from existing Corpus tools written in Python (e.g., TextSTAT)
  9. 9. Getting off the ground 1. Download python and install, 2. Using the interpreter prompt IDLE, and/or 3. Choosing an Editor (e.g.,Kate for linux). Note: need to script KATE to automagically Compile/Execute Programs

×