Changes between Version 1 and Version 2 of CompilingHTK
- Timestamp:
- 04/29/08 16:29:08 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CompilingHTK
v1 v2 1 2 == Note on compiling HTK == 1 3 2 4 Before the "make all" step we have made some small changes in the code for being able to handle longer context feature names. … … 6 8 7 9 - '''in HTKLib/HShell.h''' [[BR]] 8 < #define MAXSTRLEN 256 /* max length of a string */ [[BR]] 9 changed to: [[BR]] 10 > #define MAXSTRLEN 2048 /* max length of a string */ [BR]] 11 10 {{{ 11 line 120: #define MAXSTRLEN 256 /* max length of a string */ 12 changed to: 13 #define MAXSTRLEN 2048 /* max length of a string */ 14 }}} 12 15 13 16 - '''in HTKLib/HUtil.c''' [[BR]] 14 < char hname[256]; [[BR]] 15 changed to: [[BR]] 16 > char hname[MAXSTRLEN];[[BR]] 17 17 {{{ 18 line 1422: char hname[256]; 19 changed to: 20 char hname[MAXSTRLEN]; 21 }}} 18 22 19 23 - '''in HTKTools/HHEd.c''' 20 < CreateHeap(&hmmHeap,"Model Heap",MSTAK,1,1.0,40000,400000); [[BR]] 21 changed to: [[BR]] 22 > CreateHeap(&hmmHeap,"Model Heap",MSTAK,1,1.0,40000,1600000); [[BR]] 24 {{{ 25 line 329: CreateHeap(&hmmHeap,"Model Heap",MSTAK,1,1.0,40000,400000); 26 changed to: 27 CreateHeap(&hmmHeap,"Model Heap",MSTAK,1,1.0,40000,1600000); 23 28 24 and 25 26 < CreateHeap(&questHeap,"Question Heap",MSTAK,1,1.0,8000,16000); [[BR]] 27 < CreateHeap(&tmpHeap,"Temporary Heap",MSTAK,1,1.0,40000,400000); [[BR]] 28 changed to: [[BR]] 29 > CreateHeap(&questHeap,"Question Heap",MSTAK,1,1.0,8000,200000); [[BR]] 30 > CreateHeap(&tmpHeap,"Temporary Heap",MSTAK,1,1.0,40000,1600000); [[BR]] 29 line 8103: CreateHeap(&questHeap,"Question Heap",MSTAK,1,1.0,8000,16000); 30 changed to: 31 CreateHeap(&questHeap,"Question Heap",MSTAK,1,1.0,8000,200000); 31 32 32 We have made another small change to the hts_engine/hts_engine.cpp for being able to use phoneme names like r=, (if you will not use the hts_engine you do not need to change this). 33 line 8104: CreateHeap(&tmpHeap,"Temporary Heap",MSTAK,1,1.0,40000,400000); 34 changed to: 35 CreateHeap(&tmpHeap,"Temporary Heap",MSTAK,1,1.0,40000,1600000); 36 }}} 37 [[BR]] 38 39 We have made another small change in the hts_engine/hts_engine.cpp for being able to use phoneme names like r=, (if you will not use the hts_engine you do not need to change this). 33 40 34 41 - '''in /hts_engine/hts_engine.cpp''' 35 < if (!isalnum(buf[0])) break; [[BR]] 36 changed to: [[BR]] 37 > if (!isgraph(buf[0])) break; [[BR]] 42 {{{ 43 line 359: if (!isalnum(buf[0])) break; 44 changed to: 45 if (!isgraph(buf[0])) break; 46 }}} 38 47 39 48 After these changes you can continue as normal with "make all" and "make install".[[BR]]