patrickvonplaten
commited on
Commit
·
7779c1f
1
Parent(s):
3876982
correct error correction
Browse files- ami_split_segments.pl +1 -1
ami_split_segments.pl
CHANGED
@@ -165,7 +165,7 @@ sub normalise_transcripts {
|
|
165 |
#remove the remaining punctation labels e.g. some text ,0 some text ,1
|
166 |
# $text =~ s/[\.\,\?\!\:][0-9]+//g;
|
167 |
#there are some extra spurious puncations without spaces, e.g. UM,I, replace with space
|
168 |
-
$text =~ s/[A-Z']+,[A-Z']+/ /g;
|
169 |
#split words combination, ie. ANTI-TRUST to ANTI TRUST (None of them appears in cmudict anyway)
|
170 |
#$text =~ s/(.*)([A-Z])\s+(\-)(.*)/$1$2$3$4/g;
|
171 |
# $text =~ s/\-/ /g;
|
|
|
165 |
#remove the remaining punctation labels e.g. some text ,0 some text ,1
|
166 |
# $text =~ s/[\.\,\?\!\:][0-9]+//g;
|
167 |
#there are some extra spurious puncations without spaces, e.g. UM,I, replace with space
|
168 |
+
# $text =~ s/[A-Z']+,[A-Z']+/ /g;
|
169 |
#split words combination, ie. ANTI-TRUST to ANTI TRUST (None of them appears in cmudict anyway)
|
170 |
#$text =~ s/(.*)([A-Z])\s+(\-)(.*)/$1$2$3$4/g;
|
171 |
# $text =~ s/\-/ /g;
|