Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linstt-offline-decoding
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LINAGORA
L
LGS
Labs
linstt-offline-decoding
Commits
a402a2f5
Commit
a402a2f5
authored
Feb 20, 2018
by
Yoann HOUPERT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patch empty float
parent
3f661bbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
modules/worker_offline/scripts/extractorData.sh
modules/worker_offline/scripts/extractorData.sh
+9
-1
No files found.
modules/worker_offline/scripts/extractorData.sh
View file @
a402a2f5
...
@@ -55,7 +55,7 @@ do
...
@@ -55,7 +55,7 @@ do
fi
fi
done
<
"
$dataFile
"
done
<
"
$dataFile
"
-
#Need to manage the last data
#Need to manage the last data
acousticScore[
$previousId
]=
"
$(
echo
"scale=2;
${
acousticScore
[
$previousId
]
}
/
$countUtterance
"
| bc |
sed
-e
's/^0*//'
-e
's/^\./0./'
)
"
acousticScore[
$previousId
]=
"
$(
echo
"scale=2;
${
acousticScore
[
$previousId
]
}
/
$countUtterance
"
| bc |
sed
-e
's/^0*//'
-e
's/^\./0./'
)
"
languageScore[
$previousId
]=
"
$(
echo
"scale=2;
${
languageScore
[
$previousId
]
}
/
$countUtterance
"
| bc |
sed
-e
's/^0*//'
-e
's/^\./0./'
)
"
languageScore[
$previousId
]=
"
$(
echo
"scale=2;
${
languageScore
[
$previousId
]
}
/
$countUtterance
"
| bc |
sed
-e
's/^0*//'
-e
's/^\./0./'
)
"
...
@@ -63,6 +63,14 @@ languageScore[$previousId]="$(echo "scale=2; ${languageScore[$previousId]}/$coun
...
@@ -63,6 +63,14 @@ languageScore[$previousId]="$(echo "scale=2; ${languageScore[$previousId]}/$coun
#start to 1, no id 0 stored
#start to 1, no id 0 stored
echo
-n
"{
\"
hypotheses
\"
:["
echo
-n
"{
\"
hypotheses
\"
:["
for
i
in
`
seq
1
$previousId
`
;
do
for
i
in
`
seq
1
$previousId
`
;
do
if
[
-z
"
${
acousticScore
[
$i
]
}
"
]
;
then
acousticScore[
$i
]=
0.0
fi
if
[
-z
"
${
languageScore
[
$i
]
}
"
]
;
then
languageScore[
$i
]=
0.0
fi
if
[
"
$i
"
-eq
"
$previousId
"
]
;
then
if
[
"
$i
"
-eq
"
$previousId
"
]
;
then
echo
-n
"{
\"
utterance
\"
:
\"
${
utteranceValue
[
$i
]
}
\"
,
\"
acousticScore
\"
:
${
acousticScore
[
$i
]
}
,
\"
languageScore
\"
:
${
languageScore
[
$i
]
}
}"
echo
-n
"{
\"
utterance
\"
:
\"
${
utteranceValue
[
$i
]
}
\"
,
\"
acousticScore
\"
:
${
acousticScore
[
$i
]
}
,
\"
languageScore
\"
:
${
languageScore
[
$i
]
}
}"
else
else
...
...
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