This is an open source implementation of our measures and queries described in the following paper:
Edoardo Maria Ponti, Silvia Luraghi. To appear. Non-configurationality in diachrony: Correlations in local and global networks of Ancient Greek and Latin. In Diachronica.
If you use this software for academic research, please cite the paper in question:
@article{ponti2018non,
author = {Ponti, Edoardo Maria and Luraghi, Silvia},
title = {Non-configurationality in diachrony: Correlations in local and global networks of Ancient Greek and Latin},
journal = {Diachronica},
year = {To appear}
}
- Python
- R
- Perl
-
Download the relevant treebanks from PROIEL
-
Convert the treebanks from the
.conll
format to the.txt
format using the script conll2txt.py
python conll2txt.py <in_filename>
-
Convert the treebanks from the
.txt
format to the.pajek
format using the software txt2pajek -
Convert the treebanks from the
.conll
format to the.pml
format using the script conll2pml.pl
./conll2pml.pl -r -p <out_dirname> <in_filename>
- Install TrEd Tree Editor and its extension PML Tree Query
Substitute the .pajek
filename into the script spectrum_analysis.R and run it in an R console.
Run a query on .pml
files with TrEd to count and list:
-
discontinuous constituents: article-noun.pmltq, adjective-noun.pmltq, or verb-noun.pmltq
-
pronominal objects of coordinated verbs: pron_coord_verb.pmltq
Run the following lines on R:
library(Hmisc)
rcorr(as.matrix(<values>), type="pearson")
Licensed under the terms of the GNU General Public License, either version 3 or (at your option) any later version. A full copy of the license can be found in LICENSE.txt.