Modified instructions and official_config.ini
This commit is contained in:
parent
258d52e799
commit
d346a50d08
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,3 +5,4 @@ __pycache__/
|
|||
results/
|
||||
data/
|
||||
config.ini
|
||||
configs/
|
||||
|
|
|
@ -24,5 +24,5 @@ python3 dependency-parsetree.py --config_file=<PATH TO .ini file>
|
|||
|
||||
Example:
|
||||
```bash
|
||||
python3 dependency-parsetree.py --config_file=config_template.ini
|
||||
python3 dependency-parsetree.py --config_file=official_config.ini
|
||||
```
|
||||
|
|
|
@ -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
28
official_config.ini
Normal 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
|
Loading…
Reference in New Issue
Block a user