Professional Documents
Culture Documents
Michael Hammond
University of Arizona
Analyze data
Analyze data
Model theory
Analyze data
Model theory
http://linguistics.arizona.edu/~hammond/berkeley.html
(tkexp.pl)
(tkexp.pl)
Running experiments remotely
(tkexp.pl)
Running experiments remotely
resources (makecorpus.pl)
(tkexp.pl)
Running experiments remotely
resources (makecorpus.pl)
Assembling corpora from nonlocal dynamic
sylpars.pl)
sylpars.pl)
N-gram models (a bunch of examples from a
Web programming
Multi-platform
Multi-platform
Easy
Multi-platform
Easy
Multiple dialects
Multi-platform
Easy
Multiple dialects
Multi-platform
Easy
Multiple dialects
Written by a “linguist”
Multi-platform
Easy
Multiple dialects
Written by a “linguist”
Perl poetry
Multi-platform
Easy
Multiple dialects
Written by a “linguist”
Perl poetry
Perl syntax
Perl syntax
IO
Perl syntax
IO
Regular expressions
program).
program).
Convert code into something the computer
&
program).
Convert code into something the computer
'
program).
Convert code into something the computer
(
“Hello!”)
“Hello!”)
rand(5); (gets a random number between 0
/
and 5)
“Hello!”)
rand(5); (gets a random number between 0
0
and 5)
localtime(); (gets the current time)
0
seem to do anything.
seem to do anything.
What they do is return a string. You can save
2
seem to do anything.
What they do is return a string. You can save
3
$aVariable, $x.
$aVariable, $x.
A value is assigned to a variable with the
5
assignment operator =.
$aVariable, $x.
A value is assigned to a variable with the
6
assignment operator =.
Variables can hold numbers, strings, etc.
6
operator: F .
9
operator: F .
<
close(F);.
true
for: iteration for a specific number of times
>
push(@myarray, "hat");.
push(@myarray, "hat");.
Retrieving an element from the end of an
A
push(@myarray, "hat");.
Retrieving an element from the end of an
B
modules
modules
Tk (editperl.pl, visgrep.pl)
O
modules
Tk (editperl.pl, visgrep.pl)
P
websearch.pl)
style of programming.
style of programming.
OO Programs are a network of things or
R
style of programming.
OO Programs are a network of things or
S
style of programming.
OO Programs are a network of things or
T
(lots of “oddments”).
(lots of “oddments”).
00 programming isn’t intuitive for most folks.
Z
(lots of “oddments”).
00 programming isn’t intuitive for most folks.
[
some modules.
(websearch.pl)
well-defined
well-defined
Perl exceptionally good at string processing
g
well-defined
Perl exceptionally good at string processing
h
sylpars.pl
demystified. . .
demystified. . .
Some ideas about what you can do with it if
j
demystified. . .
Some ideas about what you can do with it if
k