summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pinyin.cpp1
-rw-r--r--src/pinyin_internal.h16
2 files changed, 7 insertions, 10 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index a5ada67..604766d 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -206,6 +206,7 @@ void pinyin_fini(pinyin_context_t * context){
bool pinyin_set_options(pinyin_context_t * context,
pinyin_option_t options){
context->m_options = options;
+ context->m_pinyin_table->set_options(context->m_options);
return true;
}
diff --git a/src/pinyin_internal.h b/src/pinyin_internal.h
index d4ef233..ce5c887 100644
--- a/src/pinyin_internal.h
+++ b/src/pinyin_internal.h
@@ -25,11 +25,13 @@
#include "pinyin.h"
#include "memory_chunk.h"
-
-#include "pinyin_base.h"
-#include "pinyin_phrase.h"
-#include "pinyin_large_table.h"
+#include "pinyin_custom2.h"
+#include "pinyin_parser2.h"
+#include "pinyin_phrase2.h"
+#include "chewing_large_table.h"
#include "phrase_large_table.h"
+#include "facade_chewing_table.h"
+#include "facade_phrase_table.h"
#include "phrase_index.h"
#include "phrase_index_logger.h"
#include "ngram.h"
@@ -37,12 +39,6 @@
#include "pinyin_lookup.h"
#include "phrase_lookup.h"
#include "tag_utility.h"
-#include "pinyin_custom2.h"
-#include "pinyin_parser2.h"
-#include "pinyin_phrase2.h"
-#include "chewing_large_table.h"
-#include "facade_chewing_table.h"
-#include "facade_phrase_table.h"
/* training module */