Merge pull request #144 from jimregan/patch-2

.' at end of sentence is missed
This commit is contained in:
Hieu Hoang 2016-03-22 08:07:17 +00:00
commit 000de1c1dd

View File

@ -348,6 +348,9 @@ sub tokenize
$text =~ s/^ //g;
$text =~ s/ $//g;
# .' at end of sentence is missed
$text =~ s/\.\' ?$/ . ' /;
# restore protected
for (my $i = 0; $i < scalar(@protected); ++$i) {
my $subst = sprintf("THISISPROTECTED%.3d", $i);