推荐两本 Programming for Linguists 的书 PERL JAVA

laohong

管理员
Staff member
Two good books on "Programming for Linguists" by the same author, MICHAEL HAMMOND, University of Arizona.

--------------------------------------------------------------------------------
Programming for Linguists: Perl for Language Researchers
--------------------------------------------------------------------------------

This book is an introduction to the rudiments of Perl programming. It provides the general reader with an interest in language with the most usable and relevant aspects of Perl for writing programs that deal with language.

Exposes the general reader with an interest in language to the most usable and relevant aspects of Perl for writing programs that deal with language.
Contains simple examples and exercises that gradually introduce the reader to the essentials of good programming.
Assumes no prior programming experience.
Accompanied by exercises at the end of each chapter and offers all the code on the companion website: http://www.u.arizona.edu/~hammond

Contents

Preface.
1. Why Programming and Why Perl?
2. Getting Started.
3. Basics: Control Structures And Variables.
4. Input and Output.
5. Subroutines And Modules.
6. Regular Expressions.
7. Text Manipulation.
8. HTML.
9. CGI.
Appendices.
A. Objects.
B. Tk.
C. Special Variables.
D. Where To Find Out More.
Index.

Sample chapter of this book is available at:
http://www.blackwellpublishing.com/...ore/Sample_chapter/0631234330/Hammond_001.pdf



--------------------------------------------------------------------------------
Programming for Linguists: Java TM Technology for Language Researchers
--------------------------------------------------------------------------------

Programming for Linguists: Java (TM) Technology for Language Researchers is a practical introduction to programming using the Java Programming Language for linguists and related language professionals.

Contents

Preface.
1. Why Programming and Why Java?
2. Running Java.
3. The Basics.
4. Input and Output.
5. Methods.
6. Objects.
7. Text Manipulation.
8. Graphical User Interfaces.
9. Graphics.
10. Applets.
Appendix A: Java 1.0, 1.1, 1.2, 1.3, Swing.
Appendix B: Pattern Matching.
Appendix C: Servlets & CGI.
Index.


Sample chapter of this book is available at:
http://www.blackwellpublishing.com/..._store/Sample_chapter/0631230416/02Chap01.pdf



--------------------------------------------------------------------------------
About the Authors
--------------------------------------------------------------------------------

Michael Hammond is Professor of Linguistics at the University of Arizona. He is the author of numerous books and articles on phonology, morphology, psychophonology, and computational linguistics including Phonology of English (1999), Constraining Metrical Theory (1988), Programming for Linguists: Java ? Technology for Language Researchers (2002), and Programming for Linguists: Perl for Language Researchers (Blackwell 2003).
 
第一本好像没有什么东西,一般的PERL教程都包括哪些基本的内容。第二本没有看过。
 
大多数的编程教程举的例子都跟语言处理不太相干,对象更不是语言学家。不同于一般的教程,这两本书的作者本身就是搞语言的,对怎么用简单的程序处理语言问题感同身受,书里的实例都是语言处理方面的,因此文科出身的读者想了解编程可以照猫画虎实际操练,何乐不为? 当然,对于高级用户来说,就没有必要看了。
 
这里还有另外一本相关的书,看看何妨?

--------------------------------------------------------------------------------
Programming for Corpus Linguistics:How to Do Text Analysis with Java
--------------------------------------------------------------------------------

by Oliver Mason

The ability to program a computer has become increasingly important in work that involves corpora. Specialized research needs can no longer be met by available software, and purchasing customized programs is usually not an option. This book enables the researcher to write programs for text and corpus processing. Useful techniques are illustrated with the popular programming language Java, which is very well suited for handling textual data and at the same time is easy to learn.

About the Author:
Oliver Mason is computer officer of corpus research in the Department of English at the University of Birmingham.
 
个人经验:如果自己会一些编程,那么corpus research可以更加得心应手。用别人的工具开始还行,但一旦研究深入,则需要做一些customized data mining。这时只能有两个选择:请别人帮忙写一些customized scripts或者自己开发。如果是后者,建议学习Perl或者PHP, 另外加一些data structure/SQL。

Perl和PHP (还有其它的scripting languages)都有regular expression的处理功能(好像Perl是鼻祖)。做corpus research从programming 的角度来说主要也就是pattern matching。如果两者都不会,建议从Perl开始,因为Perl方面的tutorials很多。但如果不怕麻烦,则推荐PHP。后者的数据库接口很强,corpus research做大了,肯定会用上。学和用PHP其实也不比Perl麻烦,只是PHP的tutorials相对Perl而言比较少。
 
PERL推荐一本英文的教程
Teach yourself perl in 21 days
讲解的很清楚,基本上是从零开始的。
 
回复:推荐两本 Programming for Linguists 的书 PERL JAVA

a friend of mine just sent me a ecopy of this book
Teaching yourself perl 5 in 21 days
i wanted to upload it here
unfortunately it is 1.6 mb even after zipping.
perhaps i'll try to sent it to our gmail.
 
PERL不是很好学,尤其是对初学者来说。从学习与实用的角度讲,我推荐Visual Basic 尤其是VB.net. 好学,而且功能强大,虽然在字处理方面的资料不是很多。经过一段时间的摸索,我发现Visual Basic不愧是最佳的RAD(Rapid Application Development)工具。我这段时间在试制一只Concordancer,实现大量文本的检索。发现用VB做这东西运行速度非常快,而且目前VB兼容的REGULAR EXPRESSION并不比Perl的逊色,速度也快。
 
回复:推荐两本 Programming for Linguists 的书 PERL JAVA

以下是引用 dzhigner2006-6-16 14:36:07 的发言:
PERL不是很好学,尤其是对初学者来说。从学习与实用的角度讲,我推荐Visual Basic 尤其是VB.net. 好学,而且功能强大,虽然在字处理方面的资料不是很多。经过一段时间的摸索,我发现Visual Basic不愧是最佳的RAD(Rapid Application Development)工具。我这段时间在试制一只Concordancer,实现大量文本的检索。发现用VB做这东西运行速度非常快,而且目前VB兼容的REGULAR EXPRESSION并不比Perl的逊色,速度也快。

Very much interested in your concordancer in VB. I used to program multimedia and database stuff with VB but have no experience in coding string-manipulating programs with this baby. Could we share your souce code?
 
回复:推荐两本 Programming for Linguists 的书 PERL JAVA

以下是引用 dzhigner2006-6-16 14:36:07 的发言:
PERL不是很好学,尤其是对初学者来说。从学习与实用的角度讲,我推荐Visual Basic 尤其是VB.net. 好学,而且功能强大,虽然在字处理方面的资料不是很多。经过一段时间的摸索,我发现Visual Basic不愧是最佳的RAD(Rapid Application Development)工具。我这段时间在试制一只Concordancer,实现大量文本的检索。发现用VB做这东西运行速度非常快,而且目前VB兼容的REGULAR EXPRESSION并不比Perl的逊色,速度也快。

I do hope that you will come up with your concordancing tool very soon.
 
我一直认为delphi比VB更好用。我曾经使用过3年的VB做RAD开发,从6.0到.Net 2003。但是后来我选择了Delphi,放弃了VB,感觉越走越窄。Delphi及VB和C++语言的优点于一身,强大得很,它的哲学体系是开放的,而不是封闭的,有大量的第三方工具可以选用(这点很像JAVA)。

另外,用什么使个人喜好的问题,习惯用什么就用什么,最适合自己的就是最好的。
 
Back
顶部