[Julius-cvs 387] CVS update: julius4/libsent/include/sent

Back to archive index

sumom****@users***** sumom****@users*****
2009年 2月 10日 (火) 17:15:48 JST


Index: julius4/libsent/include/sent/ngram2.h
diff -u julius4/libsent/include/sent/ngram2.h:1.5 julius4/libsent/include/sent/ngram2.h:1.6
--- julius4/libsent/include/sent/ngram2.h:1.5	Tue Feb 10 02:27:46 2009
+++ julius4/libsent/include/sent/ngram2.h	Tue Feb 10 17:15:48 2009
@@ -97,7 +97,7 @@
  * @author Akinobu LEE
  * @date   Fri Feb 11 15:04:02 2005
  *
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
  * 
  */
 /*
@@ -131,6 +131,8 @@
 /// Default word string of unknown word for open vocabulary
 #define UNK_WORD_DEFAULT "<unk>"
 #define UNK_WORD_DEFAULT2 "<UNK>"
+/// Maximum length of unknown word string
+#define UNK_WORD_MAXLEN 30
 
 /**
  * N-gram entries for a m-gram (1 <= m <= N)
@@ -239,7 +241,7 @@
 boolean init_ngram_bin(NGRAM_INFO *ndata, char *ngram_file);
 boolean init_ngram_arpa(NGRAM_INFO *ndata, char *ngram_file, int dir);
 boolean init_ngram_arpa_additional(NGRAM_INFO *ndata, char *bigram_file);
-void set_unknown_id(NGRAM_INFO *ndata);
+void set_unknown_id(NGRAM_INFO *ndata, char *str);
 
 void print_ngram_info(FILE *fp, NGRAM_INFO *ndata);
 



Julius-cvs メーリングリストの案内
Back to archive index