Gitiles
Code Review
Sign In
korap.ids-mannheim.de
/
KorAP
/
Tokenizer-Evaluation
/
f4eeb6c8019b7f6655287de1fa2c1d59b4d7db2e
/
.
/
benchmarks
/
cleanup
/
tokenize_nn.pl
blob: 3124c6aed3b3823d3cd6df0ba32a4ecec9d8964e [
file
] [
log
] [
blame
]
#!/usr/bin/env perl
use
strict
;
use
warnings
;
my
$c
=
''
;
foreach
(<>)
{
$c
.=
$_
;
};
$c
=~
s
/^
\n
+/
/s;
foreach my $c (split(/
\n\n
/,
$c
))
{
$c
=~
s
/[
\s\n\t
]+//
g
;
print
$c
,
"\n"
;
};