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;