Commit 4b2cd440 authored by Johan Winge's avatar Johan Winge
Browse files

Add prerequisite packages to install instructions.

parent a2cebbe9
Loading
Loading
Loading
Loading
+9 −9
Original line number Original line Diff line number Diff line
@@ -4,7 +4,11 @@ to your system, if necessary.
Supposedly (since you are reading this) you have already downloaded the source code
Supposedly (since you are reading this) you have already downloaded the source code
for the macronizer and are standing in the directory called "latin-macronizer".
for the macronizer and are standing in the directory called "latin-macronizer".


First download the specially adapted version of Morpheus, and compile it:
Install prerequisite packages:

  sudo apt-get install build-essential flex python-psycopg2

Download the specially adapted version of Morpheus, and compile it:


  git clone https://github.com/Alatius/morpheus.git
  git clone https://github.com/Alatius/morpheus.git
  cd morpheus/src
  cd morpheus/src
@@ -18,6 +22,10 @@ First download the specially adapted version of Morpheus, and compile it:


(Yes, run the update script twice. And check that it did in fact parse "salve" correctly!)
(Yes, run the update script twice. And check that it did in fact parse "salve" correctly!)


And the patched version of the Latin Dependency Treebank:

  git clone https://github.com/Alatius/treebank_data.git

Now download and compile RFTagger:
Now download and compile RFTagger:


  wget -qO- http://www.cis.uni-muenchen.de/~schmid/tools/RFTagger/data/RFTagger.tar.gz | tar xvz
  wget -qO- http://www.cis.uni-muenchen.de/~schmid/tools/RFTagger/data/RFTagger.tar.gz | tar xvz
@@ -26,10 +34,6 @@ Now download and compile RFTagger:
  sudo make install
  sudo make install
  cd ../..
  cd ../..


And the patched version of LDT:

  git clone https://github.com/Alatius/treebank_data.git

Convert the corpus and train RFTagger:
Convert the corpus and train RFTagger:


  ./train-rftagger.sh
  ./train-rftagger.sh
@@ -45,10 +49,6 @@ thepassword to whatever you want.
  postgres=# create database macronizer encoding 'UTF8' owner theusername;
  postgres=# create database macronizer encoding 'UTF8' owner theusername;
  postgres=# \q
  postgres=# \q


Install the psycopg2 Python module:

  sudo apt-get install python-psycopg2

Now, edit the main script macronizer.py and set the constants in the beginning to the correct values:
Now, edit the main script macronizer.py and set the constants in the beginning to the correct values:


  MACRONIZERLIB = '/path/to/the/latin-macronizer/'
  MACRONIZERLIB = '/path/to/the/latin-macronizer/'