Downloading, installing, and running
AM::Parallel (PC) |
To download and install the most recent version of the analogical modeling
(AM) program on a Windows machine do the following:
- Make sure you have ActivePerl installed. You can get it free from
this website
(use the MSI package; choose the ActivePerl 5.16 MSI version).
- Run the Perl Package Manager. To do this, browse to the folder where you
installed Perl (probably something like C:\Perl), and then down to the bin
folder. Then click on the ppm-shell.bat program. This will start the package
manager.
- In the Package Manager type the command: install http://humanities.byu.edu/am/download/AM-Parallel.ppd.
This will install the AM::Parallel module on your machine.
- There are three ways to get information on the program and how to use it:
If you have ActivePerl on your machine, run the Documentation program from the Start Menu under
ActivePerl. Then in
the left-hand window scroll down about half-way until you see a Modules entry
with an AM subentry. Click on Parallel.
Open a browser to the file
C:\Perl\html\site\lib\AM\Parallel.html (or its equivalent on your machine if
you installed it elsewhere).
Open a Command Prompt window and enter: perldoc AM::Parallel
To install a sample file that shows how you can run the program on the
Finnish verb data, do the following:
- Make a home folder to run the program in (e.g.
C:\amruns or perhaps a new folder called amruns on your Desktop).
- Download into the home folder
this sample perl file
called finnverb.pl.
- Inside the home folder create another folder (the project folder) called
finnverb. Into this new project folder download
this sample file called
data and this sample file
called test. Make sure your browser doesn't add a filename extension like .txt
to the end of the filename. If it does, rename the file to get rid of the
extension.
Now click on the file finnverb.pl in the home folder. The program should run
and create an output file called amcpresults in the project folder. You can open
this folder in WordPad or your favorite text editor or browser to see the
result.
Each project's files should be in its own project folder, and each project
should have its own .pl Perl file for running the program. At the very least,
for other projects you need to change the project name in the .pl command file
on the command that looks like this:
$p = AM::Parallel->new('finnverb',
-commas => 'no', -given => 'exclude');