parent
9cd3758362
commit
258d52e799
@ -0,0 +1,28 @@
|
|||||||
|
# dependency parsetree
|
||||||
|
## Linux installation and execution
|
||||||
|
### Installation
|
||||||
|
Install python 3 on your sistem.
|
||||||
|
|
||||||
|
Run the following commands in terminal:
|
||||||
|
```bash
|
||||||
|
cd <PATH TO PROJECT DIRECTORY>
|
||||||
|
pip3 install -r requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
### Execution
|
||||||
|
Set up search parameters in `.ini` file.
|
||||||
|
|
||||||
|
Execute extraction by first moving to project directory with:
|
||||||
|
```bash
|
||||||
|
cd <PATH TO PROJECT DIRECTORY>
|
||||||
|
```
|
||||||
|
|
||||||
|
And later executing script with:
|
||||||
|
```bash
|
||||||
|
python3 dependency-parsetree.py --config_file=<PATH TO .ini file>
|
||||||
|
```
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```bash
|
||||||
|
python3 dependency-parsetree.py --config_file=config_template.ini
|
||||||
|
```
|
@ -0,0 +1,23 @@
|
|||||||
|
[settings]
|
||||||
|
input = /media/luka/Portable Disk/Datasets/dependency_treeparse/ssj500k.conllu/sl_ssj-ud_v2.4.conllu
|
||||||
|
output = results/out.tsv
|
||||||
|
internal_saves = ./internal_saves
|
||||||
|
;ngrams = 0
|
||||||
|
;tree_size = 3
|
||||||
|
;lines_threshold = 10000
|
||||||
|
;frequency_threshold = 1
|
||||||
|
association_measures = no
|
||||||
|
print_root = no
|
||||||
|
node_order = free
|
||||||
|
tree_type = all
|
||||||
|
dependency_type = unlabeled
|
||||||
|
nodes_number = yes
|
||||||
|
;label_whitelist = nsubj|obj|obl
|
||||||
|
;root_whitelist = lemma=leto
|
||||||
|
;root_whitelist = upos=NOUN&Case=Nom|upos=ADJ&Degree=Sup
|
||||||
|
;root_whitelist = lemma=mati&Case=Acc|lemma=lep&Degree=Sup
|
||||||
|
; analyze_type options: form, deprel, lemma, upos, xpos
|
||||||
|
;node_type = form
|
||||||
|
cpu_cores = 12
|
||||||
|
node_type = form
|
||||||
|
query = upos=NOUN > _
|
@ -0,0 +1 @@
|
|||||||
|
pyconll==2.1.1
|
Loading…
Reference in new issue