Welcome to mirror list, hosted at ThFree Co, Russian Federation.

fsal2fsa.pl « generic « scripts - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d1aa461ac30254d9264120b46f8e368d4f2e8f51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env perl 
# A very simple script that converts fsal back to fsa format (openfst lattices)
# Ondrej Bojar, bojar@ufal.mff.cuni.cz

use warnings;
use strict;

while (<>) {
  chomp;
  tr/ /\n/;
  s/\|\|\|/\t/g;
  print;
  print "\n";
  print "\n";
}