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

remove-segmentation-markup.perl « support « ems « scripts - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3b02bceaf2a8e2fe6e95fe568b3baf2a527d6a50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env perl
#
# This file is part of moses.  Its use is licensed under the GNU Lesser General
# Public License version 2.1 or, at your option, any later version.

use warnings;
use strict;

$|++;

while(<STDIN>) {
  s/ \|\d+\-\d+\| / /g;
  s/ \|\d+\-\d+\|$//;
  print $_;
}