зеркало из https://github.com/mozilla/kaldi.git
trunk: modify rnnlm buffer overrun
git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@4775 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
This commit is contained in:
Родитель
7f28422167
Коммит
27cdd0249c
|
@ -11,4 +11,7 @@ fi
|
||||||
echo "Installing RNNLM-HS 0.1b"
|
echo "Installing RNNLM-HS 0.1b"
|
||||||
|
|
||||||
cd rnnlm-hs-0.1b
|
cd rnnlm-hs-0.1b
|
||||||
|
if grep -q '#define MAX_STRING 100' rnnlm.c ; then
|
||||||
|
patch <../extras/rnnlm.patch
|
||||||
|
fi
|
||||||
make
|
make
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
Index: rnnlm.c
|
||||||
|
===================================================================
|
||||||
|
--- rnnlm.c (revision 4774)
|
||||||
|
+++ rnnlm.c (working copy)
|
||||||
|
@@ -20,7 +20,7 @@
|
||||||
|
#include <pthread.h>
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
|
-#define MAX_STRING 100
|
||||||
|
+#define MAX_STRING 256
|
||||||
|
#define MAX_SENTENCE_LENGTH 10000
|
||||||
|
#define MAX_CODE_LENGTH 40
|
||||||
|
|
Загрузка…
Ссылка в новой задаче