Skip to content

Commit

Permalink
wrong variable #868
Browse files Browse the repository at this point in the history
  • Loading branch information
matyaskopp committed May 6, 2024
1 parent 89cf63b commit 0a70368
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Scripts/parlamint2teitok.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'notok' => \$notok, # force conversion even if there are no tokens
'file=s' => \$file, # input tei file
'tsv=s' => \$tsv, #
'tsvdir=s' => \$tsvdir, # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> !!! TODO
'tsvdir=s' => \$tsvdir, #
'out=s' => \$out, # output file file
'outdir=s' => \$outdir, # output dir
'prev=s' => \$prev, # previous file in corpus root
Expand All @@ -28,7 +28,7 @@
$sname = get_sname($file);

if ( !$out ) {
if(!outdir) {
if(!$outdir) {
$out = "xmlfiles/$sname";
} else {
$out = "$outdir/$sname";
Expand Down Expand Up @@ -261,7 +261,7 @@ ( $$$ )

# Now add the full speaker data (multilingually)
if ( !$tsv ) {
if(!tsvdir) {
if(!$tsvdir) {
$tsv = $file; $tsv =~ s/\.TEI\.ana/\.conllu/; $tsv =~ s/\.ana\././; $tsv =~ s/\.xml/-meta.tsv/;
$tsven = $tsv; $tsven =~ s/-meta/-meta-en/;
} else {
Expand Down

0 comments on commit 0a70368

Please sign in to comment.