Modified instructions and official_config.ini

This commit is contained in:
lkrsnik 2019-12-19 09:34:24 +01:00
parent 258d52e799
commit d346a50d08
4 changed files with 30 additions and 24 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ __pycache__/
results/ results/
data/ data/
config.ini config.ini
configs/

View File

@ -24,5 +24,5 @@ python3 dependency-parsetree.py --config_file=<PATH TO .ini file>
Example: Example:
```bash ```bash
python3 dependency-parsetree.py --config_file=config_template.ini python3 dependency-parsetree.py --config_file=official_config.ini
``` ```

View File

@ -1,23 +0,0 @@
[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 > _

28
official_config.ini Normal file
View File

@ -0,0 +1,28 @@
[settings]
;___GENERAL SETTINGS___
input = data/sl_ssj-ud_v2.4.conllu
output = results/out_official.tsv
internal_saves = ./internal_saves
cpu_cores = 12
;___TREE SPECIFICATIONS___
tree_size = 2-4
tree_type = complete
dependency_type = labeled
node_order = free
node_type = upos
;___TREE RESTRICTIONS___
;label_whitelist = nsubj|obj|obl
;root_whitelist = lemma=mati&Case=Acc|lemma=lep&Degree=Sup
;___SEARCH BY QUERY___
;query = _ > _
;___OUTPUT SETTINGS___
;lines_threshold = 10000
;frequency_threshold = 0
association_measures = no
print_root = yes
nodes_number = yes