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
f9349a6c
Commit
f9349a6c
authored
Jan 24, 2017
by
Abdelwahab HEBA
Browse files
replace <UNK> with <unk> in score.sh
parent
3ad59a3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
local/score.sh
local/score.sh
+1
-1
run.sh
run.sh
+2
-1
No files found.
local/score.sh
View file @
f9349a6c
...
...
@@ -55,7 +55,7 @@ done
for
wip
in
$(
echo
$word_ins_penalty
|
sed
's/,/ /g'
)
;
do
$cmd
LMWT
=
$min_lmwt
:
$max_lmwt
$dir
/scoring/log/score.LMWT.
$wip
.log
\
cat
$dir
/scoring/LMWT.
$wip
.tra
\|
\
utils/int2sym.pl
-f
2-
$symtab
\|
sed
's:\<
UNK
\>::g'
\|
\
utils/int2sym.pl
-f
2-
$symtab
\|
sed
's:\<
unk
\>::g'
\|
\
compute-wer
--text
--mode
=
present
\
ark:
$dir
/scoring/test_filt.txt ark,p:-
">&"
$dir
/wer_LMWT_
$wip
||
exit
1
;
done
...
...
run.sh
View file @
f9349a6c
...
...
@@ -18,6 +18,7 @@ LM_train_text=/home/lingora/Documents/Linagora/Data/Tcof/tcof/3/Corpus/train
#train dev
for
part
in
dev
test
train
;
do
# use underscore-separated names in data directories.
echo
"prep
$part
"
local
/data_prep.sh
$data
/
$part
data/
$part
done
###### OOOOOK
...
...
@@ -52,7 +53,7 @@ local/prepare_dict.sh --stage 3 --nj 4 --cmd "$train_cmd" \
###### OOOOOOK
utils/prepare_lang.sh data/local/dict
\
"<
UNK
>"
data/local/lang_tmp data/lang
"<
unk
>"
data/local/lang_tmp data/lang
export
LC_ALL
=
fr_FR.UTF-8
...
...
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