Skip to content

Commit

Permalink
delete BITEXTORINSTALL
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuhoang committed Nov 8, 2018
1 parent 907434a commit 8c82726
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions snakemake/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,9 @@ def open_gzip_or_plain(file_path):
###########################################################

BITEXTOR=config["bitextor"]
if "bitextor-installation" in config:
BITEXTORINSTALL=config["bitextor-installation"]
else:
BITEXTORINSTALL=config["bitextor"]

LANG1=config["lang1"]
LANG2=config["lang2"]
MODEL='{BITEXTORINSTALL}/share/bitextor/model/keras.model'
WEIGHTS='{BITEXTORINSTALL}/share/bitextor/model/keras.weights'
TMPDIR=config["temp"]
MINQUALITY=config["minquality"]
MAXLINES=config["maxlines"]
Expand Down Expand Up @@ -400,7 +394,7 @@ rule xtt2boiler:
'{target}.boiler'
shell:
"if [ \"{IGNOREBOILER}\" == \"1\" ]; then "
" java -Dfile.encoding=UTF-8 -jar {BITEXTORINSTALL}/share/java/piped-boilerpipe.jar < {input} > {output}; "
" java -Dfile.encoding=UTF-8 -jar {BITEXTOR}/share/java/piped-boilerpipe.jar < {input} > {output}; "
"else "
" cat {input} > {output}; "
"fi"
Expand Down Expand Up @@ -535,7 +529,7 @@ rule urlsoverlap2rank:
output:
'{target}.{num}.rank'
shell:
'{BITEXTOR}/bitextor-rank.py -m {BITEXTOR}/{MODEL} -w {BITEXTOR}/{WEIGHTS} < {input[0]} > {output}'
'{BITEXTOR}/bitextor-rank.py -m {BITEXTOR}/share/bitextor/model/keras.model -w {BITEXTOR}/share/bitextor/model/keras.weights < {input[0]} > {output}'

rule aligndocumentsparacrawl:
input:
Expand Down Expand Up @@ -575,7 +569,7 @@ rule alignsegments:
output:
'{name}.segalign'
shell:
'{BITEXTOR}/bitextor-align-segments.py -d {input[0]} -t {TMPDIR} --lang1 {LANG1} --lang2 {LANG2} {USENLTK} --hunalign-dir "{BITEXTORINSTALL}/bin" < {input[1]} > {output}'
'{BITEXTOR}/bitextor-align-segments.py -d {input[0]} -t {TMPDIR} --lang1 {LANG1} --lang2 {LANG2} {USENLTK} --hunalign-dir "{BITEXTOR}/bin" < {input[1]} > {output}'

rule concat_segs:
input:
Expand Down

0 comments on commit 8c82726

Please sign in to comment.