Translate Perl script to an equivalent Bash or Python
€8-30 EUR
Finalizat
Data postării: peste 3 ani în urmă
€8-30 EUR
Plata la predare
I have 3 short scripts written in Perl. These scripts should be translated to Bash or Python script (any of these two options is valid for me). Below you can see an example of Script #1 (contains 18 lines):
if ( @ARGV > 1 ) {
die "Usage: [login to view URL] [ utt2spk ] > spk2utt";
}
while(<>){
@A = split(" ", $_);
@A == 2 || die "Invalid line in utt2spk file: $_";
($u,$s) = @A;
if(!$seen_spk{$s}) {
$seen_spk{$s} = 1;
push @spklist, $s;
}
push (@{$spk_hash{$s}}, "$u");
}
foreach $s (@spklist) {
$l = join(' ',@{$spk_hash{$s}});
print "$s $l\n";
}
The Script #2 and #3 contain 8 and 50 lines, correspondingly.
Hi I have done both Perl and Python programming for short scripts like these and I'm capable of translating between them. I'm able to help you, and would like to discuss this further.
€15 EUR în 1 zi
5,0 (3 recenzii)
1,7
1,7
5 freelanceri plasează o ofertă medie de €24 EUR pentru proiect
Hello,
I would like to translate the scripts into python and create a private package, this way you can test them much easier and extend them however you want and additionally install them easily via pip if necessary.