Lab sessions

SU1, Friday 12:20 p.m.

Jiří Mírovský
mirovsky at ufal.mff.cuni.cz
room 422

Outline

  • various formats for phrase-structure and dependency trees, transformations (Perl or another programming language, 3 classes)
  • mining information from the w-layer and m-layer of the PDT (bash, Perl or another programming language, 3 classes)
  • mining information from all layers of the PDT (btred, Perl, 3 classes)
  • searching in the PDT in PML-Tree Query (PML-TQ, 3 classes)

Homeworks

Results of the homeworks (click here)



Class 00 - February 21, 2020

Installation of tree editor TrEd on computers in the lab (installation script 'install_tred.bash' from the TrEd home page)

  1. Setting up cpan (so that it uses local directories; http://www.perlmonks.org/?node_id=630026):
    • mkdir -p ~/.cpan/CPAN
      touch ~/.cpan/CPAN/MyConfig.pm # (or echo "1" >~/.cpan/CPAN/MyConfig.pm, or cp /root/.cpan/CPAN/Config.pm ~/.cpan/CPAN/MyConfig.pm if the subsequent command does not work)
    • perl -MCPAN -e shell
      cpan> o conf init # (use local::lib and at the end, allow setting (or set manually) some variables in .bashrc file)
    • exit cpan, exit and start bash
  2. Installing cpanm for easier installation of other Perl modules
    • cpan App::cpanminus
  3. Installing Tred


lindat.cz - search for Prague Dependency Treebank 2.0 - sample data

Configuration file .tredrc - customize fonts: font section in Tred documentation

Tred & svn: file pmlbackend_conf.xml

An example file from the Penn Treebank transformed to the PML - to test the TrEd installation; an extension for the Penn Treebank files (ptb) needs to be installed first...