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
0a19c79d
Commit
0a19c79d
authored
Oct 05, 2017
by
Abdelwahab HEBA
Browse files
try to split jonction
parent
b123acb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
local/lm/parseESTERSyncV2_text.py
local/lm/parseESTERSyncV2_text.py
+1
-1
local/parseESTERSyncV2.py
local/parseESTERSyncV2.py
+1
-1
No files found.
local/lm/parseESTERSyncV2_text.py
View file @
0a19c79d
...
...
@@ -85,7 +85,7 @@ def transformation_text(text):
text
=
re
.
sub
(
r
"\"+"
,
""
,
text
)
# t 'avais
text
=
re
.
sub
(
r
"[ ]\'"
,
"
\'
"
,
text
)
#
text = re.sub(r"\'", "\' ", text)
text
=
re
.
sub
(
r
"\'"
,
"
\'
"
,
text
)
# for example : A43
#num_list = re.findall("\w+?-?\d+", text)
num_list
=
re
.
findall
(
"[a-zA-Z|à|è|é|ù]+
\'
*[a-zA-Z|à|é|è|ù]*[-]?\d+""", text)
...
...
local/parseESTERSyncV2.py
View file @
0a19c79d
...
...
@@ -85,7 +85,7 @@ def transformation_text(text):
text
=
re
.
sub
(
r
"\"+"
,
""
,
text
)
# t 'avais
text
=
re
.
sub
(
r
"[ ]\'"
,
"
\'
"
,
text
)
#
text = re.sub(r"\'", "\' ", text)
text
=
re
.
sub
(
r
"\'"
,
"
\'
"
,
text
)
# for example : A43
#num_list = re.findall("\w+?-?\d+", text)
num_list
=
re
.
findall
(
"[a-zA-Z|à|è|é|ù]+
\'
*[a-zA-Z|à|é|è|ù]*[-]?\d+""", 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