Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions moses/ems/support/split-sentences.perl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
my $text = "";
while (<STDIN>) {
chomp;
if (/^<.+>$/ || /^\s*$/) {
if (/^<p>$/ || /^\s*$/) {
# Time to process this block; we've hit a blank or <p>
&do_it_for($text, $_);
print "<P>\n" if (/^\s*$/ && $text); ## If we have text followed by <P>
Expand All @@ -93,7 +93,7 @@
sub do_it_for {
my($text,$markup) = @_;
print &preprocess($text) if $text;
print "$markup\n" if ($markup =~ /^<.+>$/);
print "$markup\n" if ($markup =~ /^<p>$/);
#chop($text);
}

Expand Down