A source code repository to the article: "Automatic Poetic Metre Detection" by Kristýna Klesnilová, Karel Klouda, Magda Friedjungová, and Petr Plecháč. (still preprint, TBA)
If you find this repository useful, please cite above mentioned article.
resources: Resources used inside the implementationcorpusCzechVerse: Corpus of Czech Verse Git repositoryemnlp2017-bilstm-cnn-crf: BiLSTM-CRF Git repository
src: Implementationrequirements.txt: Python packages installation file.env: Environment variables file
- Save absolute path of this directory to
WORKING_DIRenvironment variable inside.envfile (create.envif not exists):echo "WORKING_DIR=/absolute/path/to/this/dir" > .env - Create Python3 virtual environment:
python3 -m venv venv - Activate virtual environment:
source venv/bin/activate - Install required packages:
pip3 install -r requirements.txt
When using this code as Git repository cloned from GitHub
- Initialize Git submodules located inside
resources:git submodule init & git submodule update
- Create directory
resources:mkdir resources - Change directory to
resources:cd resources - Clone respected Git directories:
git clone git@github.com:magdafriedjungova/emnlp2017-bilstm-cnn-crf.gitgit clone git@github.com:versotym/corpusCzechVerse.git