Using the Python code: prerequisites

If you want to use the Python code on your local machine, you’ll need to start by installing some stuff. Everything is free.

Cygwin

LARA runs under UNIX. If you are using Windows, download and install Cygwin to get a UNIX-like environment. You will need perl, make and svn, which are not included by default.

Python 3

Download and install Python 3. You will also need to install the requests, nltk and python-docx packages.

To avoid ambiguity, the targets in $LARA/Content/Makefile assume you can invoke Python 3 with the command python3. If you want to use them, you may need to copy an .exe file in the Python 3 directory.

LARA material

Use SVN checkout to download collector-lara from SourceForge.

TreeTagger

Download and install TreeTagger from the TreeTagger page. Download and install parameter files for all the languages you are intending to use.

ffmpeg

Download and install ffmpeg from the zeranoe ffmpeg downloads page.

Environment variables

Set the environment variable LARA to point to the root directory for the downloaded LARA SourceForge material. Set the environment variable TREETAGGER to point to the root directory for TreeTagger.

For example, on my machine these variables are set as follows:

$ echo $LARA
C:/cygwin64/home/sf/callector-lara-svn/trunk

$ echo $TREETAGGER
C:/TreeTagger

Update PATH so that it includes the Cygwin, Python3 and ffmpeg executable directories. For example, on my machine PATH includes the following:

C:/cygwin64/bin
C:/Program Files (x86)/Python37-32
C:/Program Files (x86)/Python37-32/Scripts
C:/ffmpeg/bin

Update PYTHONPATH so that it includes the LARA Python directory. For example, on my machine PATH includes the following:

C:/cygwin64/home/sf2/callector-lara-svn/trunk/Code/Python