Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Meysam Shamsi
s4d
Commits
f5c00aed
Commit
f5c00aed
authored
Nov 12, 2020
by
Pierre-Alexandre Broux
Browse files
Updated read_stm from diar.py
parent
b0835fe2
Changes
1
Hide whitespace changes
Inline
Side-by-side
s4d/diar.py
View file @
f5c00aed
...
...
@@ -849,10 +849,10 @@ class Diar():
loc
=
str2str_normalize
(
loc
)
start
=
int
(
float
(
split
[
3
])
*
100
)
stop
=
int
(
float
(
split
[
4
])
*
100
)
addon
=
split
[
5
].
replace
(
">"
,
""
).
replace
(
"<"
,
""
)
.
replace
(
","
,
" "
)
addon
=
split
[
5
].
replace
(
">"
,
""
).
replace
(
"<"
,
""
)
lineBis
=
re
.
sub
(
'\s+'
,
' '
,
addon
)
lineBis
=
lineBis
.
strip
()
gender
=
lineBis
.
split
()[
2
]
gender
=
lineBis
.
split
(
","
)[
2
]
if
normalize_cluster
:
word
=
str2str_normalize
(
word
)
# print(show, tmp, start, length, gender, channel, env, speaker)
...
...
Write
Preview
Supports
Markdown
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