Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LINAGORA
L
LGS
Labs
kaldi-modelgen
Commits
0474456a
Commit
0474456a
authored
Jan 24, 2017
by
Abdelwahab HEBA
Browse files
remove sil token
parent
f9349a6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
local/lm/parseText.py
local/lm/parseText.py
+2
-2
No files found.
local/lm/parseText.py
View file @
0474456a
...
...
@@ -54,8 +54,8 @@ def transformation_text(text):
text
=
re
.
sub
(
r
":|\?|/|\!|<|>|#+"
,
""
,
text
)
# replace silence character with <sil> : OK
#text=re.sub(r"(\+)", "<sil>", text)
text
=
re
.
sub
(
r
"(\+)"
,
"
!SIL
"
,
text
)
text
=
re
.
sub
(
r
"(///)"
,
"
!SIL
"
,
text
)
text
=
re
.
sub
(
r
"(\+)"
,
""
,
text
)
text
=
re
.
sub
(
r
"(///)"
,
""
,
text
)
#text=re.sub(r"(///)", "<long-sil>", text)
if
len
(
re
.
findall
(
r
"/.+/"
,
text
))
>
0
:
#print "AVANT***********"+text
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment