File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -174,10 +174,17 @@ if [ $stage -le 3 ]; then
174
174
cp $srcdir /phones.txt $dir 2> /dev/null || true
175
175
176
176
mkdir -p $graph_dir
177
+
178
+ n_reco=$( cat $text | wc -l) || exit 1
179
+ nj_reco=$nj
180
+
181
+ if [ $nj -gt $n_reco ]; then
182
+ nj_reco=$n_reco
183
+ fi
177
184
178
185
# Make graphs w.r.t. to the original text (usually recording-level)
179
186
steps/cleanup/make_biased_lm_graphs.sh $graph_opts \
180
- --nj $nj --cmd " $cmd " $text \
187
+ --nj $nj_reco --cmd " $cmd " $text \
181
188
$lang $dir $dir /graphs
182
189
if [ -z " $utt2text " ]; then
183
190
# and then copy it to the sub-segments.
Original file line number Diff line number Diff line change @@ -235,10 +235,17 @@ if [ $stage -le 3 ]; then
235
235
236
236
mkdir -p $graph_dir
237
237
238
+ n_reco=$( cat $text | wc -l) || exit 1
239
+ nj_reco=$nj
240
+
241
+ if [ $nj -gt $n_reco ]; then
242
+ nj_reco=$n_reco
243
+ fi
244
+
238
245
# Make graphs w.r.t. to the original text (usually recording-level)
239
246
steps/cleanup/make_biased_lm_graphs.sh $graph_opts \
240
247
--scale-opts " $scale_opts " \
241
- --nj $nj --cmd " $cmd " $text \
248
+ --nj $nj_reco --cmd " $cmd " $text \
242
249
$lang $dir $dir /graphs
243
250
if [ -z " $utt2text " ]; then
244
251
# and then copy it to the sub-segments.
You can’t perform that action at this time.
0 commit comments