Fix split_conllu file creation to circumvent problems in mounted docker volumes

Change-Id: I37778812ebd5f1fa5fa466370c8932aafbcb0c05
diff --git a/benchmarks/cleanup/split_conllu.pl b/benchmarks/cleanup/split_conllu.pl
index 441be36..e372d68 100644
--- a/benchmarks/cleanup/split_conllu.pl
+++ b/benchmarks/cleanup/split_conllu.pl
@@ -5,11 +5,19 @@
 our @ARGV;
 
 my $file = $ARGV[0];
+my $file_name = $file;
+$file_name =~ s!^.+?/([^/]+?)$!$1!;
+
+
+my $out = $ARGV[1];
 
 open(X, '<' . $file);
-open(RAW, '>' . $file . '.raw');
-open(SPLIT, '>' . $file . '.split');
-open(EOS, '>' . $file . '.eos');
+unlink $file . '.raw';
+open(RAW, '>' . $out . '/' . $file_name . '.raw') or die $!;
+unlink $file . '.split';
+open(SPLIT, '>' . $out . '/' . $file_name . '.split') or die $!;
+unlink $file . '.eos';
+open(EOS, '>' . $out . '/' . $file_name . '.eos') or die $!;
 
 my $init;
 
diff --git a/benchmarks/ud_sentences.pl b/benchmarks/ud_sentences.pl
index c5f80c6..f7973a2 100644
--- a/benchmarks/ud_sentences.pl
+++ b/benchmarks/ud_sentences.pl
@@ -4,7 +4,6 @@
 
 # Comparison path
 my $cmd = '/euralex/corpus/empirist_gold_cmc/tools/compare_tokenization.perl';
-# my $cmd = '/euralex/corpus/deep-eos/eval.py';
 
 my $cleanup = 'perl /euralex/benchmarks/cleanup/';
 my $tokenize_eos = $cleanup . 'tokenize_eos.pl';
@@ -18,11 +17,11 @@
 
 # Split files
 chdir '/euralex/corpus/';
-system 'perl /euralex/benchmarks/cleanup/split_conllu.pl /euralex/corpus/' . $base;
+system 'perl /euralex/benchmarks/cleanup/split_conllu.pl /euralex/corpus/' . $base . ' ' . $ud_path;
 chdir '/euralex';
 
-my $gold = '/euralex/corpus/' . $base . '.eos';
-my $raw = '/euralex/corpus/' . $base . '.raw';
+my $gold = $ud_path . '/' . $base . '.eos';
+my $raw = $ud_path . '/' . $base . '.raw';
 
 my %tools = (
   waste => sub {