diff --git a/BOTDATA/TEST/error_correction.top b/BOTDATA/TEST/error_correct.top similarity index 66% rename from BOTDATA/TEST/error_correction.top rename to BOTDATA/TEST/error_correct.top index 798815a..cdcebd5 100644 --- a/BOTDATA/TEST/error_correction.top +++ b/BOTDATA/TEST/error_correct.top @@ -1,8 +1,9 @@ # DST and NLU -topic: ~error_correction keep repeat ( "想 看" ) +topic: ~error_correct keep repeat ( "想 看" ) u: ( 看 _* ) - _0 '_0 + _0 \n + '_0 \n if ( _0='_0 ) { 你想看 _0 diff --git a/BOTDATA/TEST/simplecontrol.top b/BOTDATA/TEST/simplecontrol.top index 7c37350..0a21a67 100644 --- a/BOTDATA/TEST/simplecontrol.top +++ b/BOTDATA/TEST/simplecontrol.top @@ -32,8 +32,6 @@ u: (< alarm test) \[ alarm=5000 \] Alarm requested. u: ( ) # main per-sentence processing - if (%revisedinput) - { # %topic 当前真实话题 $$currenttopic = %topic # get the current topic at start of volley @@ -124,15 +122,6 @@ u: ( ) # main per-sentence processing [不要欺负本宝宝了,人家还在长大] } - } - - else - { - $$tokenizedInput = ^cn_segment(%originalinput) - ^input($$tokenizedInput) - ^fail(SENTENCE) - } - topic: ~XPOSTPROCESS system () # gambits only - not allowed to write to output - generates speech on windows -- for Linux you'd want to install Festival (or equivalent) and call that instead. diff --git "a/BOTDATA/TEST/\345\210\206\350\257\215.top" "b/BOTDATA/TEST/\345\210\206\350\257\215.top" index b2a0b8a..c010764 100644 --- "a/BOTDATA/TEST/\345\210\206\350\257\215.top" +++ "b/BOTDATA/TEST/\345\210\206\350\257\215.top" @@ -3,7 +3,7 @@ topic: ~segment keep repeat ( 分词 ) t: 请输入测试语句: -u: (看 _*) +u: ( 分词 _* ) 使用撇号: \n '_0 \n 没有撇号: \n diff --git a/ChatScript-7.3/BINARIES/ChatScript b/ChatScript-7.3/BINARIES/ChatScript index e23102d..de88720 100644 Binary files a/ChatScript-7.3/BINARIES/ChatScript and b/ChatScript-7.3/BINARIES/ChatScript differ diff --git a/ChatScript-7.3/SRC/Makefile b/ChatScript-7.3/SRC/Makefile index 2229dc5..a4c9272 100644 --- a/ChatScript-7.3/SRC/Makefile +++ b/ChatScript-7.3/SRC/Makefile @@ -89,7 +89,7 @@ clean: -rm -f *.o binary: $(OBJECTS) - $(CC) $(OBJECTS) $(LDFLAGS) $(DEFINES) $(INCLUDEDIRS) -o $(EXECUTABLE) + $(CC) -g $(OBJECTS) $(LDFLAGS) $(DEFINES) $(INCLUDEDIRS) -o $(EXECUTABLE) .cpp.o: - $(CC) $(CFLAGS) $(DEFINES) $(INCLUDEDIRS) $< -o $@ + $(CC) -g -O0 $(CFLAGS) $(DEFINES) $(INCLUDEDIRS) $< -o $@ diff --git a/ChatScript-7.3/SRC/common.h b/ChatScript-7.3/SRC/common.h index 343a4d8..8ee93c3 100644 --- a/ChatScript-7.3/SRC/common.h +++ b/ChatScript-7.3/SRC/common.h @@ -218,6 +218,7 @@ using namespace std; #ifdef PRIVATE_CODE #include "privatesrc.h" +#include "../privatecode/preprocess.h" #endif #ifdef WIN32 diff --git a/ChatScript-7.3/SRC/mainSystem.cpp b/ChatScript-7.3/SRC/mainSystem.cpp index ddee41e..6ca1c19 100644 --- a/ChatScript-7.3/SRC/mainSystem.cpp +++ b/ChatScript-7.3/SRC/mainSystem.cpp @@ -1401,6 +1401,11 @@ int PerformChatGivenTopic(char* user, char* usee, char* incoming,char* ip,char* // INTERNAL STRINGS AND STUFF never have control characters either (/r /t /n converted only on output to user) // WE internally use /r/n in file stuff for the user topic file. +// ķִ +#ifdef PRIVATE_CODE +#include "../privatecode/preprocess.cpp" +#endif + int PerformChat(char* user, char* usee, char* incoming,char* ip,char* output) // returns volleycount or 0 if command done or -1 PENDING_RESTART { // primary entrypoint for chatbot -- null incoming treated as conversation start. pendingUserReset = false; @@ -1415,6 +1420,12 @@ int PerformChat(char* user, char* usee, char* incoming,char* ip,char* output) // #endif ClearVolleyWordMaps(); ResetEncryptTags(); + + // ķִʹ +#ifdef PRIVATE_CODE + incoming = CNPreprocess(incoming); +#endif + mainInputBuffer = incoming; mainOutputBuffer = output; size_t len = strlen(incoming); @@ -2575,9 +2586,10 @@ void PrepareSentence(char* input,bool mark,bool user, bool analyze,bool oobstart #ifndef NOMAIN int main(int argc, char * argv[]) { + // вǷroot=оͽǰ·лָ· for (int i = 1; i < argc; ++i) { - if (!strnicmp(argv[i],"root=",5)) + if (!strnicmp(argv[i],"root=",5)) // ȽַǰnַǷͬ { #ifdef WIN32 SetCurrentDirectory((char*)argv[i]+5); @@ -2587,6 +2599,7 @@ int main(int argc, char * argv[]) } } + // ͷļdictionarySystem.h·ǰ·ǷӦǰһ FILE* in = FopenStaticReadOnly((char*)"SRC/dictionarySystem.h"); // SRC/dictionarySystem.h if (!in) // if we are not at top level, try going up a level { @@ -2598,10 +2611,14 @@ int main(int argc, char * argv[]) #endif } else FClose(in); + + // ʼϵͳ if (InitSystem(argc,argv)) myexit((char*)"failed to load memory\r\n"); - if (!server) + + if (!server) { quitting = false; // allow local bots to continue regardless + // ѭ MainLoop(); } else if (quitting) {;} // boot load requests quit diff --git a/ChatScript-7.3/SRC/os.cpp b/ChatScript-7.3/SRC/os.cpp index 8a24571..b1515da 100644 --- a/ChatScript-7.3/SRC/os.cpp +++ b/ChatScript-7.3/SRC/os.cpp @@ -883,9 +883,9 @@ void InitFileSystem(char* untouchedPath,char* readablePath,char* writeablePath) void StartFile(const char* name) { if (strnicmp(name,"TMP",3)) maxFileLine = currentFileLine = 0; - strcpy(currentFilename,name); // in case name is simple + strcpy(currentFilename,name); // in case name is simple (char*ֵchar[]ķʽʹstrcpy) - char* at = strrchr((char*) name,'/'); // last end of path + char* at = strrchr((char*) name,'/'); // last end of path (ڲijַַһγֵλ) if (at) strcpy(currentFilename,at+1); at = strrchr(currentFilename,'\\'); // windows last end of path if (at) strcpy(currentFilename,at+1); diff --git a/ChatScript-7.3/gdb.cfg b/ChatScript-7.3/gdb.cfg new file mode 100644 index 0000000..f9a4603 --- /dev/null +++ b/ChatScript-7.3/gdb.cfg @@ -0,0 +1,17 @@ +break MainLoop() +break PerformChat +break PerformChatGivenTopic +break ProcessInputFile +break /letv/workspace/Bots/ChatScript-7.3/SRC/mainSystem.cpp:1441 +break /letv/workspace/Bots/ChatScript-7.3/SRC/mainSystem.cpp:1471 +break ProcessInputFile +break FinishVolley +break MainLoop() +break PerformChat +break PerformChatGivenTopic +break ProcessInputFile +break /letv/workspace/Bots/ChatScript-7.3/SRC/mainSystem.cpp:1441 +break /letv/workspace/Bots/ChatScript-7.3/SRC/mainSystem.cpp:1471 +break ProcessInputFile +break FinishVolley +break CNPreprocess(char*) diff --git a/ChatScript-7.3/privatecode/preprocess.cpp b/ChatScript-7.3/privatecode/preprocess.cpp new file mode 100644 index 0000000..7fb9632 --- /dev/null +++ b/ChatScript-7.3/privatecode/preprocess.cpp @@ -0,0 +1,38 @@ +#include "cppjieba/Jieba.hpp" + +const char* const DICT_PATH = "./privatecode/Jieba/DICT/jieba.dict.utf8"; +const char* const HMM_PATH = "./privatecode/Jieba/DICT/hmm_model.utf8"; +const char* const USER_DICT_PATH = "./privatecode/Jieba/DICT/user.dict.utf8"; +const char* const IDF_PATH = "./privatecode/Jieba/DICT/idf.utf8"; +const char* const STOP_WORD_PATH = "./privatecode/Jieba/DICT/stop_words.utf8"; + +cppjieba::Jieba cpp_jieba(DICT_PATH, + HMM_PATH, + USER_DICT_PATH, + IDF_PATH, + STOP_WORD_PATH); + +char * CNPreprocess(char * incoming) +{ + char * segmented_result; + if (strlen(incoming) == 0 || !strncmp(incoming, " :", 2) || !strncmp(incoming, ":", 1)) + segmented_result = incoming; + else + { + vector words; + vector jiebawords; + string s(incoming); + string result; + + cpp_jieba.Cut(s, words, true); + result = limonp::Join(words.begin(), words.end(), " "); + char *pw = new char(strlen(incoming) + 1); + + // Method #2: Allocate memory on stack and copy the contents of the + // original string. Keep in mind that once a current function returns, + // the memory is invalidated. + segmented_result = (char *)alloca(result.size() + 1); + memcpy(segmented_result, result.c_str(), result.size() + 1); + } + return segmented_result; +} diff --git a/ChatScript-7.3/privatecode/preprocess.h b/ChatScript-7.3/privatecode/preprocess.h new file mode 100644 index 0000000..cac354a --- /dev/null +++ b/ChatScript-7.3/privatecode/preprocess.h @@ -0,0 +1,6 @@ +#ifndef PREPROCESSH +#define PREPROCESSH + +char* CNPreprocess(char * incoming); + +#endif \ No newline at end of file diff --git a/ChatScript-7.3/privatecode/privatesrc.cpp b/ChatScript-7.3/privatecode/privatesrc.cpp index 7ce1080..b632d90 100644 --- a/ChatScript-7.3/privatecode/privatesrc.cpp +++ b/ChatScript-7.3/privatecode/privatesrc.cpp @@ -26,8 +26,6 @@ sprintf(buffer,(char*)"%d",count); 将格式化的数据写入字符串 1. 常用无符号整形 unsigned int i; */ - -#include "privatesrc.h" #include "cppjieba/Jieba.hpp" const char* const DICT_PATH = "./privatecode/Jieba/DICT/jieba.dict.utf8"; diff --git a/LOGS/startlog.txt b/LOGS/startlog.txt index 3fff4e0..6bb1d07 100644 --- a/LOGS/startlog.txt +++ b/LOGS/startlog.txt @@ -186,3 +186,50 @@ System startup Test reset Tue Mar 07 17:13:49 2017 System startup createsystem Tue Mar 07 17:13:49 2017 System startup Test Tue Mar 07 17:15:57 2017 System startup createsystem Tue Mar 07 17:15:57 2017 +System startup createsystem Thu Mar 09 17:22:54 2017 +System startup Test reset Thu Mar 09 17:30:23 2017 +System startup createsystem Thu Mar 09 17:30:23 2017 +System startup Test Thu Mar 09 17:31:19 2017 +System startup createsystem Thu Mar 09 17:31:20 2017 +System startup Test reset Thu Mar 09 17:31:59 2017 +System startup createsystem Thu Mar 09 17:31:59 2017 +System startup Test Thu Mar 09 17:35:34 2017 +System startup createsystem Thu Mar 09 17:35:35 2017 +System startup createsystem Fri Mar 10 11:44:08 2017 +System startup createsystem Fri Mar 10 11:46:18 2017 +System startup createsystem Fri Mar 10 11:50:33 2017 +System startup createsystem Fri Mar 10 11:54:20 2017 +System startup createsystem Fri Mar 10 14:46:18 2017 +System startup createsystem Fri Mar 10 15:27:03 2017 +System startup createsystem Fri Mar 10 17:53:13 2017 +System startup createsystem Fri Mar 10 18:06:07 2017 +System startup createsystem Fri Mar 10 18:24:58 2017 +System startup createsystem Fri Mar 10 18:43:20 2017 +System startup createsystem Fri Mar 10 18:45:06 2017 +System startup createsystem Fri Mar 10 20:04:13 2017 +System startup createsystem Fri Mar 10 20:22:02 2017 +System startup createsystem Sun Mar 12 13:42:31 2017 +System startup createsystem Sun Mar 12 15:09:37 2017 +System startup createsystem Sun Mar 12 15:41:09 2017 +System startup createsystem Sun Mar 12 15:49:24 2017 +System startup createsystem Sun Mar 12 15:58:40 2017 +System startup createsystem Sun Mar 12 16:00:55 2017 +System startup createsystem Sun Mar 12 16:16:03 2017 +System startup createsystem Sun Mar 12 16:24:16 2017 +System startup createsystem Sun Mar 12 16:34:08 2017 +System startup createsystem Sun Mar 12 16:34:23 2017 +System startup createsystem Sun Mar 12 17:05:16 2017 +System startup createsystem Sun Mar 12 17:06:25 2017 +System startup createsystem Sun Mar 12 17:07:29 2017 +System startup createsystem Sun Mar 12 17:08:15 2017 +System startup createsystem Sun Mar 12 17:08:38 2017 +System startup createsystem Sun Mar 12 17:09:59 2017 +System startup createsystem Sun Mar 12 17:12:55 2017 +System startup createsystem Sun Mar 12 17:31:25 2017 +System startup createsystem Sun Mar 12 17:33:20 2017 +System startup createsystem Sun Mar 12 17:35:39 2017 +System startup createsystem Sun Mar 12 17:45:47 2017 +System startup createsystem Sun Mar 12 17:46:47 2017 +System startup createsystem Sun Mar 12 17:53:10 2017 +System startup Test reset Sun Mar 12 17:53:16 2017 +System startup createsystem Sun Mar 12 17:53:17 2017 diff --git a/TOPIC/BUILD1/keywords1.txt b/TOPIC/BUILD1/keywords1.txt index 744cdaa..d7bdcdb 100644 --- a/TOPIC/BUILD1/keywords1.txt +++ b/TOPIC/BUILD1/keywords1.txt @@ -4,5 +4,5 @@ T~send_msg_policy ( ) T~send_msg_nlg ( ) T~control ( ) T~xpostprocess ( ) -T~error_correction ( 想_看 ) +T~error_correct ( 想_看 ) T~segment ( 分词 ) diff --git a/TOPIC/BUILD1/map1.txt b/TOPIC/BUILD1/map1.txt index 1757b74..f3aa540 100644 --- a/TOPIC/BUILD1/map1.txt +++ b/TOPIC/BUILD1/map1.txt @@ -104,81 +104,75 @@ file: /letv/workspace/Bots/ChatScript-7.3/../BOTDATA/TEST/simplecontrol.top 0 line: 31 0 Complexity of rule ~control.8.0- u: 1 rule: ~control.9.0 u: 33 - line: 35 0 - line: 38 28 - line: 41 47 - line: 44 118 - line: 46 170 - line: 50 217 - line: 52 300 - line: 54 335 - line: 55 361 - line: 57 378 - line: 58 411 - line: 59 450 - line: 61 479 - line: 63 495 - line: 64 501 - line: 82 503 - line: 84 557 - line: 88 574 - line: 90 687 - line: 92 722 - line: 93 748 - line: 95 765 - line: 96 798 - line: 97 836 - line: 99 865 - line: 101 881 - line: 102 887 - line: 103 889 - line: 105 971 - line: 107 1006 - line: 108 1031 - line: 110 1048 - line: 111 1080 - line: 112 1118 - line: 114 1147 - line: 116 1163 - line: 117 1169 - line: 119 1171 - line: 121 1206 - line: 122 1220 - line: 123 1268 - line: 124 1318 - line: 126 1320 - line: 128 1326 - line: 129 1337 - line: 130 1347 - line: 131 1399 - line: 132 1427 - Complexity of rule ~control.9.0- u: 15 - topic: ~xpostprocess 136 - rule: ~xpostprocess.0.0 t: 138 - line: 139 0 - line: 141 17 - line: 142 47 - line: 144 104 - line: 145 114 - line: 147 155 - line: 148 161 + line: 36 0 + line: 39 17 + line: 42 88 + line: 44 140 + line: 48 187 + line: 50 270 + line: 52 305 + line: 53 331 + line: 55 348 + line: 56 381 + line: 57 420 + line: 59 449 + line: 61 465 + line: 62 471 + line: 80 473 + line: 82 527 + line: 86 544 + line: 88 657 + line: 90 692 + line: 91 718 + line: 93 735 + line: 94 768 + line: 95 806 + line: 97 835 + line: 99 851 + line: 100 857 + line: 101 859 + line: 103 941 + line: 105 976 + line: 106 1001 + line: 108 1018 + line: 109 1050 + line: 110 1088 + line: 112 1117 + line: 114 1133 + line: 115 1139 + line: 117 1141 + line: 119 1176 + line: 120 1190 + line: 121 1238 + line: 122 1288 + Complexity of rule ~control.9.0- u: 14 + topic: ~xpostprocess 125 + rule: ~xpostprocess.0.0 t: 127 + line: 128 0 + line: 130 17 + line: 131 47 + line: 133 104 + line: 134 114 + line: 136 155 + line: 137 161 Complexity of rule ~xpostprocess.0.0- t: 2 -file: /letv/workspace/Bots/ChatScript-7.3/../BOTDATA/TEST/error_correction.top 0 - topic: ~error_correction 2 - rule: ~error_correction.0.0 u: 4 +file: /letv/workspace/Bots/ChatScript-7.3/../BOTDATA/TEST/error_correct.top 0 + topic: ~error_correct 2 + rule: ~error_correct.0.0 u: 4 line: 5 0 line: 6 3 - line: 8 30 - line: 9 42 - line: 10 45 - line: 11 56 - line: 12 66 - line: 13 89 - Complexity of rule ~error_correction.0.0- u: 2 - rule: ~error_correction.1.0 u: 15 - line: 17 0 - line: 18 3 - Complexity of rule ~error_correction.1.0- u: 1 + line: 7 10 + line: 9 36 + line: 10 48 + line: 11 51 + line: 12 62 + line: 13 72 + line: 14 95 + Complexity of rule ~error_correct.0.0- u: 2 + rule: ~error_correct.1.0 u: 16 + line: 18 0 + line: 19 3 + Complexity of rule ~error_correct.1.0- u: 1 file: /letv/workspace/Bots/ChatScript-7.3/../BOTDATA/TEST/分词.top 0 topic: ~segment 2 rule: ~segment.0.0- t: 4 diff --git a/TOPIC/BUILD1/script1.txt b/TOPIC/BUILD1/script1.txt index 390e093..2a68c84 100644 --- a/TOPIC/BUILD1/script1.txt +++ b/TOPIC/BUILD1/script1.txt @@ -1,4 +1,4 @@ -00008 Mar07'17-17:15:57 Test 7.3 +00008 Mar12'17-17:53:16 Test 7.3 TOPIC: ~is 0x0 0 0 0 10 topics.top " all " TOPIC: ~send_msg 0x3 1405057454 7 0 1037 send_msg.top @@ -7,11 +7,11 @@ TOPIC: ~send_msg_policy 0x13 -430177168 6 0 517 send_msg.top " all " 01q u: ( =9$intent=send_msg $msg $name =c$confirmed=no ) $msg = null $name = null $confirmed = null `01d u: ( =9$intent=send_msg $msg $name =c$confirmed=other ) $policy = confirm_send_msg `017 u: ( =9$intent=send_msg $msg $name =c$confirmed=yes ) $policy = sys_send_msg `016 u: ( =9$intent=send_msg $msg $name !$confirmed ) $policy = confirm_send_msg `014 u: ( =9$intent=send_msg $msg !$name !$confirmed ) $policy = ask_slot_name `00- u: ( =9$intent=send_msg !$msg !$confirmed ) $policy = ask_slot_msg `000 TOPIC: ~send_msg_nlg 0x13 1120849246 4 0 346 send_msg.top " all " 00& u: ( =9$policy=ask_slot_msg ) 你所发消息内容是什么? `00Z u: ( =9$policy=ask_slot_name ) 你要发消息给谁? `01m u: ( =9$policy=confirm_send_msg ) 即将给 $name 发消息,说: $msg , 是否确定? `01u u: ( =9$policy=sys_send_msg ) \[ intent: send_msg, name: $name , msg: $msg \] 消息发送成功。 `000 -TOPIC: ~control 0x19 1027144229 10 0 1923 simplecontrol.top -" all " 00W u: ( =8%input<%userfirstline ) ^gambit ( ~send_msg ) `00A u: ( < shut up > ) $shutup = 1 `00A u: ( < talk > ) $shutup = null `00G u: ( \[ callback \] ) Callback seen. `00G u: ( \[ loopback \] ) Loopback seen. `00A u: ( \[ alarm \] ) Alarm seen. `00^ u: ( < loopback test ) \[ loopback=1000 \] Loopback requested. `00^ u: ( < callback test ) \[ callback=1000 \] Callback requested. `00X u: ( < alarm test ) \[ alarm=5000 \] Alarm requested. `0jD u: ( ) ^if 00l( %revisedinput ) 0hw{ $$currenttopic = %topic ^if 00m( %response == 0 ) 00I{ ^nofail ( TOPIC ^rejoinder ( ) ) } 004 ^if 00D( %length == 0 and %response == 0 ) 00U{ ^nofail ( TOPIC ^gambit ( $$currenttopic ) ) } 004 ^if 00m( %response == 0 ) 00V{ ^nofail ( TOPIC ^respond ( $$currenttopic ) ) } 004 ^if 00m( %response == 0 ) 02r{ @8 = ^keywordtopics ( ) ^loop ( -1 ) 01S { $$topic = ^first ( @8subject ) ^nofail ( TOPIC ^respond ( $$topic ) ) ^if 00m( %response != 0 ) 00p{ ^end ( RULE ) } 004 } } 004 ^if 00F( %outputrejoinder or %lastquestion ) 00q{ ^end ( TOPIC ) } 004 ^if 00R( %response == 0 and ^marked ( $$currenttopic ) ) 00U{ ^nofail ( TOPIC ^gambit ( $$currenttopic ) ) } 004 ^if 00m( %response == 0 ) 02q{ @8 = ^keywordtopics ( ) ^loop ( -1 ) 01R { $$topic = ^first ( @8subject ) ^nofail ( TOPIC ^gambit ( $$topic ) ) ^if 00m( %response != 0 ) 00p{ ^end ( RULE ) } 004 } } 004 ^if 00m( %response == 0 ) 00U{ ^nofail ( TOPIC ^gambit ( $$currenttopic ) ) } 004 ^if 00m( %response == 0 ) 02o{ @8 = ^gambittopics ( ) ^loop ( -1 ) 01Q { $$topic = ^pick ( @8subject ) ^nofail ( TOPIC ^gambit ( $$topic ) ) ^if 00m( %response != 0 ) 00p{ ^end ( RULE ) } 004 } } 004 ^if 00m( %response == 0 ) 01M{ ^repeat ( ) [ 我竟然无言以对,人家还是个宝宝 ] [ 不要欺负本宝宝了,人家还在长大 ] } 004 } 01N else ( 1 ) 01x { $$tokenizedinput = ^cn_segment ( %originalinput ) ^input ( $$tokenizedinput ) ^fail ( SENTENCE ) } 004 `000 +TOPIC: ~control 0x19 2028788041 10 0 1767 simplecontrol.top +" all " 00W u: ( =8%input<%userfirstline ) ^gambit ( ~send_msg ) `00A u: ( < shut up > ) $shutup = 1 `00A u: ( < talk > ) $shutup = null `00G u: ( \[ callback \] ) Callback seen. `00G u: ( \[ loopback \] ) Loopback seen. `00A u: ( \[ alarm \] ) Alarm seen. `00^ u: ( < loopback test ) \[ loopback=1000 \] Loopback requested. `00^ u: ( < callback test ) \[ callback=1000 \] Callback requested. `00X u: ( < alarm test ) \[ alarm=5000 \] Alarm requested. `0hx u: ( ) $$currenttopic = %topic ^if 00m( %response == 0 ) 00I{ ^nofail ( TOPIC ^rejoinder ( ) ) } 004 ^if 00D( %length == 0 and %response == 0 ) 00U{ ^nofail ( TOPIC ^gambit ( $$currenttopic ) ) } 004 ^if 00m( %response == 0 ) 00V{ ^nofail ( TOPIC ^respond ( $$currenttopic ) ) } 004 ^if 00m( %response == 0 ) 02r{ @8 = ^keywordtopics ( ) ^loop ( -1 ) 01S { $$topic = ^first ( @8subject ) ^nofail ( TOPIC ^respond ( $$topic ) ) ^if 00m( %response != 0 ) 00p{ ^end ( RULE ) } 004 } } 004 ^if 00F( %outputrejoinder or %lastquestion ) 00q{ ^end ( TOPIC ) } 004 ^if 00R( %response == 0 and ^marked ( $$currenttopic ) ) 00U{ ^nofail ( TOPIC ^gambit ( $$currenttopic ) ) } 004 ^if 00m( %response == 0 ) 02q{ @8 = ^keywordtopics ( ) ^loop ( -1 ) 01R { $$topic = ^first ( @8subject ) ^nofail ( TOPIC ^gambit ( $$topic ) ) ^if 00m( %response != 0 ) 00p{ ^end ( RULE ) } 004 } } 004 ^if 00m( %response == 0 ) 00U{ ^nofail ( TOPIC ^gambit ( $$currenttopic ) ) } 004 ^if 00m( %response == 0 ) 02o{ @8 = ^gambittopics ( ) ^loop ( -1 ) 01Q { $$topic = ^pick ( @8subject ) ^nofail ( TOPIC ^gambit ( $$topic ) ) ^if 00m( %response != 0 ) 00p{ ^end ( RULE ) } 004 } } 004 ^if 00m( %response == 0 ) 01M{ ^repeat ( ) [ 我竟然无言以对,人家还是个宝宝 ] [ 不要欺负本宝宝了,人家还在长大 ] } 004 `000 TOPIC: ~xpostprocess 0x19 -2048403277 1 1 232 simplecontrol.top " all " 02^ t: ( ^query ( direct_v ? chatoutput ? -1 ? @9 ) ) ^loop ( -1 ) 020 { $$tmp = ^last ( @9subject ) ^if 00O( ! %server and %os == windows and ! $shutup ) 00Y{ $$tmp = ^"talk \"$$tmp\" " ^popen ( $$tmp null ) } 004 } `000 -TOPIC: ~error_correction 0x3 1854083650 2 0 153 error_correction.top -" all " 01G u: ( 看 _* ) _0 '_0 ^if 00g( _0 = '_0 ) 00o{ 你想看 _0 } 00P else ( 1 ) 00z { 你想看 '_0 还是 _0 } 004 `00m u: ( _* ) _0 '_0 `000 -TOPIC: ~segment 0x3 -662013190 3 1 589 分词.top -" all " 00y t: 请输入测试语句: `026 u: ( 看 _* ) 使用撇号: \n '_0 \n 没有撇号: \n _0 \n original using no \': \n ^original ( _0 ) \n original using \': \n ^original ( '_0 ) \n `05a u: ( !( 分词 ) _* ) all sentences user passed into volley, before adjusted in any way: ( originalinput ) \n %originalinput \n the current sentence after tokenization but before any adjustments: ( originalsentence ) \n %originalsentence \n 使用撇号: \n '_0 \n 没有撇号: \n _0 \n original using no \': \n ^original ( _0 ) \n original using \': \n ^original ( '_0 ) \n `000 +TOPIC: ~error_correct 0x3 -1076879340 2 0 159 error_correct.top +" all " 01M u: ( 看 _* ) _0 \n '_0 \n ^if 00g( _0 = '_0 ) 00o{ 你想看 _0 } 00P else ( 1 ) 00z { 你想看 '_0 还是 _0 } 004 `00m u: ( _* ) _0 '_0 `000 +TOPIC: ~segment 0x3 -1050575393 3 1 592 分词.top +" all " 00y t: 请输入测试语句: `029 u: ( 分词 _* ) 使用撇号: \n '_0 \n 没有撇号: \n _0 \n original using no \': \n ^original ( _0 ) \n original using \': \n ^original ( '_0 ) \n `05a u: ( !( 分词 ) _* ) all sentences user passed into volley, before adjusted in any way: ( originalinput ) \n %originalinput \n the current sentence after tokenization but before any adjustments: ( originalsentence ) \n %originalsentence \n 使用撇号: \n '_0 \n 没有撇号: \n _0 \n original using no \': \n ^original ( _0 ) \n original using \': \n ^original ( '_0 ) \n `000 diff --git a/USERS/buildTest_log.txt b/USERS/buildTest_log.txt index feb1032..58756ed 100644 --- a/USERS/buildTest_log.txt +++ b/USERS/buildTest_log.txt @@ -1,4 +1,4 @@ -ChatScript Version 7.3 compiled Mar 6 2017 16:40:15 +ChatScript Version 7.3 compiled Mar 12 2017 17:52:53 >>Reading folder ../BOTDATA/TEST/ @@ -22,8 +22,8 @@ Reading table tbl:defaultbot Reading topic ~control Reading topic ~xpostprocess -----Reading file error_correction.top -Reading topic ~error_correction +----Reading file error_correct.top +Reading topic ~error_correct ----Reading file 分词.top Reading topic ~segment diff --git a/USERS/log-user.txt b/USERS/log-user.txt index 9d0ddf0..3811c63 100644 --- a/USERS/log-user.txt +++ b/USERS/log-user.txt @@ -2889,3 +2889,165 @@ Respond: user:user bot:test ip: (~segment) 61 ==> When:Mar07'17-18:32:57 Respond: user:user bot:test ip: (~segment) 62 fe ==> All sentences user passed into volley, before adjusted in any (originalinput) fe the current sentence after tokenization but before any (originalsentence) fe 使用撇号: fe 没有撇号: fe original using no ': fe original using ': fe When:Mar07'17-18:32:59 Why:~segment.2.0.~control.9.0 F:1 Respond: user:user bot:test ip: (~segment) 63 ==> When:Mar07'17-18:32:59 F:0 Respond: user:user bot:test ip: (~segment) 64 ==> When:Mar07'17-18:32:59 F:0 +Start: user:user bot:test ip: rand:1292 (~segment) 64 ==> When:Mar09'17-17:22:56 Version:7.3 Build0: Build1:Mar07'17-17:15:57 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar07'17-18:32:59 +Respond: user:user bot:test ip: (~segment) 65 Nih ==> All sentences user passed into volley, before adjusted in any (originalinput) Nih the current sentence after tokenization but before any (originalsentence) Nih 使用撇号: Nih 没有撇号: Nih original using no ': Nih original using ': Nih When:Mar09'17-17:23:11 Why:~segment.2.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 66 你好 ==> All sentences user passed into volley, before adjusted in any (originalinput) 你好 the current sentence after tokenization but before any (originalsentence) 你好 使用撇号: 你好 没有撇号: 你好 original using no ': 你好 original using ': 你好 When:Mar09'17-17:23:13 Why:~segment.2.0.~control.9.0 F:0 +Respond: user:user bot:test ip: (~segment) 67 ll ==> All sentences user passed into volley, before adjusted in any (originalinput) ll the current sentence after tokenization but before any (originalsentence) ll 使用撇号: ll 没有撇号: ll original using no ': ll original using ': ll When:Mar09'17-17:24:02 Why:~segment.2.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 68 Nihao ==> All sentences user passed into volley, before adjusted in any (originalinput) Nihao the current sentence after tokenization but before any (originalsentence) Nihao 使用撇号: Nihao 没有撇号: Nihao original using no ': Nihao original using ': Nihao When:Mar09'17-17:24:04 Why:~segment.2.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 69 你好 ==> All sentences user passed into volley, before adjusted in any (originalinput) 你好 the current sentence after tokenization but before any (originalsentence) 你好 使用撇号: 你好 没有撇号: 你好 original using no ': 你好 original using ': 你好 When:Mar09'17-17:24:06 Why:~segment.2.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 70 你是谁 ==> All sentences user passed into volley, before adjusted in any (originalinput) 你是谁 the current sentence after tokenization but before any (originalsentence) 你 是 谁 使用撇号: 你 是 谁 没有撇号: unknown-word unknown-word unknown-word original using no ': 你 是 谁 original using ': 你 是 谁 When:Mar09'17-17:24:08 Why:~segment.2.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 71 测试 ==> All sentences user passed into volley, before adjusted in any (originalinput) 测试 the current sentence after tokenization but before any (originalsentence) 测试 使用撇号: 测试 没有撇号: 测试 original using no ': 测试 original using ': 测试 When:Mar09'17-17:24:41 Why:~segment.2.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 72 分词 ==> 我竟然无言以对,人家还是个宝宝 When:Mar09'17-17:24:42 Why:~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 73 分词 测试 ==> 我竟然无言以对,人家还是个宝宝 When:Mar09'17-17:24:51 Why:~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 74 分词 ==> 不要欺负本宝宝了,人家还在长大 When:Mar09'17-17:24:53 Why:~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 75 分词测试 ==> 我竟然无言以对,人家还是个宝宝 When:Mar09'17-17:24:56 Why:~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 76 j ==> All sentences user passed into volley, before adjusted in any (originalinput) j the current sentence after tokenization but before any (originalsentence) j 使用撇号: j 没有撇号: J original using no ': j original using ': j When:Mar09'17-17:24:59 Why:~segment.2.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 77 分词测试 ==> 不要欺负本宝宝了,人家还在长大 When:Mar09'17-17:25:03 Why:~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 78 我想看三三三是 ==> 使用撇号: 三三三是 没有撇号: unknown-word original using no ': 三三三是 original using ': 三三三是 When:Mar09'17-17:30:19 Why:~segment.1.0.~control.9.0 F:2 +Command: :build Test reset +Start: user:user bot:test ip: rand:1228 (~send_msg) 0 ==> When:Mar09'17-17:30:24 Version:7.3 Build0: Build1:Mar09'17-17:30:23 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar09'17-17:30:19 +Respond: user:user bot:test ip: (~error_correct) 1 想看 ==> 你想看 When:Mar09'17-17:30:25 Why:~error_correct.0.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 2 分词 ==> 分词 分词 When:Mar09'17-17:30:27 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 3 分词 ==> 分词 分词 When:Mar09'17-17:30:38 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 4 fe ==> Fe fe When:Mar09'17-17:31:09 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 5 ==> When:Mar09'17-17:31:11 F:1 +Respond: user:user bot:test ip: (~error_correct) 6 ==> When:Mar09'17-17:31:11 F:0 +Respond: user:user bot:test ip: (~error_correct) 7 fe ==> Fe fe When:Mar09'17-17:31:14 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 8 ==> When:Mar09'17-17:31:14 F:1 +Command: :build Test +Start: user:user bot:test ip: rand:1236 (~error_correct) 8 ==> When:Mar09'17-17:31:20 Version:7.3 Build0: Build1:Mar09'17-17:31:19 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar09'17-17:31:14 +Respond: user:user bot:test ip: (~error_correct) 9 分词 ==> 分词 分词 When:Mar09'17-17:31:22 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 10 测试 ==> 测试 测试 When:Mar09'17-17:31:24 Why:~error_correct.1.0.~control.9.0 F:0 +Respond: user:user bot:test ip: (~error_correct) 11 分词 我是中国人 ==> 分词 unknown-word unknown-word unknown-word unknown-word 分词 我 是 中国 人 When:Mar09'17-17:31:27 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 12 : ==> : : When:Mar09'17-17:31:31 Why:~error_correct.1.0.~control.9.0 F:0 +Respond: user:user bot:test ip: (~error_correct) 13 fe ==> Fe fe When:Mar09'17-17:31:51 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 14 ==> When:Mar09'17-17:31:52 F:0 +Respond: user:user bot:test ip: (~error_correct) 15 ==> When:Mar09'17-17:31:52 F:0 +Respond: user:user bot:test ip: (~error_correct) 16 ==> When:Mar09'17-17:31:52 F:0 +Respond: user:user bot:test ip: (~error_correct) 17 ==> When:Mar09'17-17:31:52 F:1 +Respond: user:user bot:test ip: (~error_correct) 18 fe ==> Fe fe When:Mar09'17-17:31:54 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 19 ==> When:Mar09'17-17:31:54 F:0 +Command: :build Test reset +Start: user:user bot:test ip: rand:1228 (~send_msg) 0 ==> When:Mar09'17-17:32:00 Version:7.3 Build0: Build1:Mar09'17-17:31:59 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar09'17-17:31:54 +Respond: user:user bot:test ip: (~segment) 1 你好 ==> 请输入测试语句: When:Mar09'17-17:32:01 Why:~segment.0.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 2 fi ==> All sentences user passed into volley, before adjusted in any (originalinput) fi the current sentence after tokenization but before any (originalsentence) fi 使用撇号: fi 没有撇号: fi original using no ': fi original using ': fi When:Mar09'17-17:32:04 Why:~segment.2.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 3 f ==> All sentences user passed into volley, before adjusted in any (originalinput) f the current sentence after tokenization but before any (originalsentence) f 使用撇号: f 没有撇号: F original using no ': f original using ': f When:Mar09'17-17:32:09 Why:~segment.2.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 4 f ==> All sentences user passed into volley, before adjusted in any (originalinput) f the current sentence after tokenization but before any (originalsentence) f 使用撇号: f 没有撇号: F original using no ': f original using ': f When:Mar09'17-17:32:11 Why:~segment.2.0.~control.9.0 F:1 +Command: :pending +Pending topics: ~segment ~send_msg +Respond: user:user bot:test ip: (~segment) 5 分词 ==> 使用撇号: 没有撇号: original using no ': original using ': When:Mar09'17-17:32:35 Why:~segment.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 6 分词 i love you ==> 使用撇号: I love you 没有撇号: I love you original using no ': I love you original using ': I love you When:Mar09'17-17:32:40 Why:~segment.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 7 分词 你好吗 ==> 使用撇号: 你好 吗 没有撇号: unknown-word unknown-word original using no ': 你好 吗 original using ': 你好 吗 When:Mar09'17-17:32:47 Why:~segment.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 8 我们 ==> All sentences user passed into volley, before adjusted in any (originalinput) 我们 the current sentence after tokenization but before any (originalsentence) 我们 使用撇号: 我们 没有撇号: 我们 original using no ': 我们 original using ': 我们 When:Mar09'17-17:33:29 Why:~segment.2.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 9 我想看 ==> All sentences user passed into volley, before adjusted in any (originalinput) 我想看 the current sentence after tokenization but before any (originalsentence) 我 想 看 使用撇号: 我 想 看 没有撇号: unknown-word unknown-word unknown-word original using no ': 我 想 看 original using ': 我 想 看 When:Mar09'17-17:34:17 Why:~segment.2.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 10 我想看 ==> All sentences user passed into volley, before adjusted in any (originalinput) 我想看 the current sentence after tokenization but before any (originalsentence) 我 想 看 使用撇号: 我 想 看 没有撇号: unknown-word unknown-word unknown-word original using no ': 我 想 看 original using ': 我 想 看 When:Mar09'17-17:34:22 Why:~segment.2.0.~control.9.0 F:0 +Command: :reset +Start: user:user bot:test ip: rand:1228 (~send_msg) 0 ==> When:Mar09'17-17:34:25 Version:7.3 Build0: Build1:Mar09'17-17:31:59 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar09'17-17:34:22 +Respond: user:user bot:test ip: (~error_correct) 1 我想看 ==> 你想看 When:Mar09'17-17:34:27 Why:~error_correct.0.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 2 我想看三三三世 ==> Unknown-word 三生三世 你想看 三生三世 还是 unknown-word When:Mar09'17-17:34:39 Why:~error_correct.0.0.~control.9.0 F:1 +Command: :build Test +Start: user:user bot:test ip: rand:1230 (~error_correct) 2 ==> When:Mar09'17-17:35:35 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar09'17-17:34:39 +Respond: user:user bot:test ip: (~error_correct) 3 我想看三三三世 ==> Unknown-word 三生三世 你想看 三生三世 还是 unknown-word When:Mar09'17-17:35:40 Why:~error_correct.0.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 4 我想看 我爱你 ==> 爱你 我爱你 你想看 我爱你 还是 爱你 When:Mar09'17-17:36:06 Why:~error_correct.0.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 5 我想看小飞侠 ==> Unknown-word 小飞侠 你想看 小飞侠 还是 unknown-word When:Mar09'17-17:36:12 Why:~error_correct.0.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 6 我想看I love ==> I love I love 你想看 i love When:Mar09'17-17:36:48 Why:~error_correct.0.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 7 我想看wikifea ==> Unknown-word wikifea 你想看 wikifea 还是 unknown-word When:Mar09'17-17:36:56 Why:~error_correct.0.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 8 我想看feiwafea ==> Unknown-word feiwafea 你想看 feiwafea 还是 unknown-word When:Mar09'17-17:37:08 Why:~error_correct.0.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 9 我想看我爱你 ==> Unknown-word 我爱你 你想看 我爱你 还是 unknown-word When:Mar09'17-17:38:28 Why:~error_correct.0.0.~control.9.0 F:1 +Start: user:user bot:test ip: rand:1237 (~error_correct) 9 ==> When:Mar10'17-11:44:08 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar09'17-17:38:28 +Start: user:user bot:test ip: rand:1237 (~error_correct) 9 ==> When:Mar10'17-11:46:19 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar09'17-17:38:28 +Respond: user:user bot:test ip: (~error_correct) 10 你好 ==> 你好 你好 When:Mar10'17-11:46:30 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 11 f ==> F f When:Mar10'17-11:46:34 Why:~error_correct.1.0.~control.9.0 F:1 +Start: user:user bot:test ip: rand:1239 (~error_correct) 11 ==> When:Mar10'17-11:50:33 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar10'17-11:46:34 +Respond: user:user bot:test ip: (~error_correct) 12 n ==> N n When:Mar10'17-11:50:37 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 13 bt ==> Bt bt When:Mar10'17-11:50:39 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 14 bt ==> Bt bt When:Mar10'17-11:50:41 Why:~error_correct.1.0.~control.9.0 F:1 +Start: user:user bot:test ip: rand:1242 (~error_correct) 14 ==> When:Mar10'17-14:46:19 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar10'17-11:50:41 +Start: user:user bot:test ip: rand:1242 (~error_correct) 14 ==> When:Mar10'17-15:33:45 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar10'17-11:50:41 +Respond: user:user bot:test ip: (~error_correct) 15 你好 ==> 你好 你好 When:Mar10'17-15:34:20 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 16 我是中国人 ==> Unknown-word unknown-word unknown-word unknown-word 我 是 中国 人 When:Mar10'17-15:34:45 Why:~error_correct.1.0.~control.9.0 F:1 +Start: user:user bot:test ip: rand:1244 (~error_correct) 16 ==> When:Mar10'17-18:01:00 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar10'17-15:34:45 +Start: user:user bot:test ip: rand:1244 (~error_correct) 16 ==> When:Mar10'17-18:06:25 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar10'17-15:34:45 +Respond: user:user bot:test ip: (~error_correct) 17 怒火 ==> 怒火 怒火 When:Mar10'17-18:06:44 Why:~error_correct.1.0.~control.9.0 F:12637 +Start: user:user bot:test ip: rand:1245 (~error_correct) 17 ==> When:Mar10'17-18:24:58 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar10'17-18:06:44 +Respond: user:user bot:test ip: (~error_correct) 18 ==> When:Mar10'17-18:24:58 F:1 +Respond: user:user bot:test ip: (~error_correct) 19 你好 ==> 你好 你好 When:Mar10'17-18:25:03 Why:~error_correct.1.0.~control.9.0 F:2 +Respond: user:user bot:test ip: (~error_correct) 20 你好 ==> 你好 你好 When:Mar10'17-18:25:06 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 21 你好 ==> 你好 你好 When:Mar10'17-18:25:08 Why:~error_correct.1.0.~control.9.0 F:1 +Start: user:user bot:test ip: rand:1249 (~error_correct) 21 ==> When:Mar10'17-18:43:47 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar10'17-18:25:08 +Respond: user:user bot:test ip: (~error_correct) 22 c ==> C c When:Mar10'17-18:43:49 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 23 ==> When:Mar10'17-18:43:49 F:1 +Respond: user:user bot:test ip: (~error_correct) 24 ==> When:Mar10'17-18:43:50 F:1 +Respond: user:user bot:test ip: (~error_correct) 25 ==> When:Mar10'17-18:43:50 F:0 +Respond: user:user bot:test ip: (~error_correct) 26 ==> When:Mar10'17-18:43:50 F:1 +Respond: user:user bot:test ip: (~error_correct) 27 ==> When:Mar10'17-18:43:50 F:1 +Respond: user:user bot:test ip: (~error_correct) 28 ==> When:Mar10'17-18:43:50 F:0 +Respond: user:user bot:test ip: (~error_correct) 29 ==> When:Mar10'17-18:43:50 F:1 +Respond: user:user bot:test ip: (~error_correct) 30 kill ==> Kill kill When:Mar10'17-18:43:53 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 31 kill ==> Kill kill When:Mar10'17-18:43:55 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 32 kill ==> Kill kill When:Mar10'17-18:43:57 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 33 kill ==> Kill kill When:Mar10'17-18:43:59 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 34 kill ==> Kill kill When:Mar10'17-18:44:00 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 35 kill ==> Kill kill When:Mar10'17-18:44:02 Why:~error_correct.1.0.~control.9.0 F:1 +Start: user:user bot:test ip: rand:1263 (~error_correct) 35 ==> When:Mar10'17-19:57:30 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar10'17-18:44:02 +Respond: user:user bot:test ip: (~error_correct) 36 ==> When:Mar10'17-19:58:57 F:20539 +Respond: user:user bot:test ip: (~error_correct) 37 你好吗? ==> Unknown-word unknown-word unknown-word 你好 吗 ? When:Mar10'17-20:02:25 Why:~error_correct.1.0.~control.9.0 F:32312 +Start: user:user bot:test ip: rand:1265 (~error_correct) 37 ==> When:Mar10'17-20:22:22 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar10'17-20:02:25 +Respond: user:user bot:test ip: (~error_correct) 38 你好 ==> 你好 你好 When:Mar10'17-20:22:48 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 39 你好 ==> 你好 你好 When:Mar10'17-20:23:14 Why:~error_correct.1.0.~control.9.0 F:0 +Respond: user:user bot:test ip: (~error_correct) 40 我是中国人 ==> Unknown-word unknown-word unknown-word unknown-word 我 是 中国 人 When:Mar10'17-20:36:00 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 41 我是中国人 ==> Unknown-word unknown-word unknown-word unknown-word 我 是 中国 人 When:Mar10'17-20:36:23 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 42 我是中国人 ==> Unknown-word unknown-word unknown-word unknown-word 我 是 中国 人 When:Mar10'17-20:38:08 Why:~error_correct.1.0.~control.9.0 F:1 +Start: user:user bot:test ip: rand:1270 (~error_correct) 42 ==> When:Mar12'17-13:42:46 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar10'17-20:38:08 +Respond: user:user bot:test ip: (~error_correct) 43 你好我是中国人和 ==> Unknown-word unknown-word unknown-word unknown-word unknown-word unknown-word 你好 我 是 中国 人 和 When:Mar12'17-13:43:15 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 44 我在中国北京 ==> Unknown-word unknown-word unknown-word unknown-word 我 在 中国 北京 When:Mar12'17-14:11:26 Why:~error_correct.1.0.~control.9.0 F:1111204 +Respond: user:user bot:test ip: (~error_correct) 45 我生活在 中国北京 "" [D ==> Unknown-word unknown-word unknown-word unknown-word unknown-word unknown-word [ D 我 生活 在 中国 北京 " " [ D When:Mar12'17-14:12:24 Why:~error_correct.1.0.~control.9.0 F:9744 +Respond: user:user bot:test ip: (~error_correct) 46 我生活在 中国 北京 ""你呢 ==> Unknown-word unknown-word unknown-word 中国 北京 unknown-word unknown-word unknown-word 我 生活 在 中国 北京 " " 你 呢 When:Mar12'17-14:21:43 Why:~error_correct.1.0.~control.9.0 F:483620 +Respond: user:user bot:test ip: (~error_correct) 47 我生活在中国你呢在" 哪里 " ==> Unknown-word unknown-word unknown-word unknown-word unknown-word unknown-word 在 " 哪里 " 我 生活 在 中国 你 呢 在 " 哪里 " When:Mar12'17-14:32:16 Why:~error_correct.1.0.~control.9.0 F:565277 +Start: user:user bot:test ip: rand:1275 (~error_correct) 47 ==> When:Mar12'17-15:41:10 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-14:32:16 +Respond: user:user bot:test ip: (~error_correct) 48 我爱你 你呢 ==> 爱你 unknown-word unknown-word 我爱你 你 呢 When:Mar12'17-15:41:12 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 49 我爱你 你呢 ==> 爱你 unknown-word unknown-word 我爱你 你 呢 When:Mar12'17-15:41:30 Why:~error_correct.1.0.~control.9.0 F:0 +Start: user:user bot:test ip: rand:1277 (~error_correct) 49 ==> When:Mar12'17-15:49:25 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-15:41:30 +Start: user:user bot:test ip: rand:1277 (~error_correct) 49 ==> When:Mar12'17-15:58:41 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-15:41:30 +Start: user:user bot:test ip: rand:1277 (~error_correct) 49 ==> When:Mar12'17-16:00:56 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-15:41:30 +Start: user:user bot:test ip: rand:1277 (~error_correct) 49 ==> When:Mar12'17-16:16:04 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-15:41:30 +Start: user:user bot:test ip: rand:1277 (~error_correct) 49 ==> When:Mar12'17-16:24:17 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-15:41:30 +Start: user:user bot:test ip: rand:1277 (~error_correct) 49 ==> When:Mar12'17-16:34:11 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-15:41:30 +Start: user:user bot:test ip: rand:1277 (~error_correct) 49 ==> When:Mar12'17-16:34:25 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-15:41:30 +Start: user:user bot:test ip: rand:1277 (~error_correct) 49 ==> When:Mar12'17-17:05:17 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-15:41:30 +Start: user:user bot:test ip: rand:1277 (~error_correct) 49 ==> When:Mar12'17-17:06:48 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-15:41:30 +Start: user:user bot:test ip: rand:1277 (~error_correct) 49 ==> When:Mar12'17-17:07:30 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-15:41:30 +Start: user:user bot:test ip: rand:1277 (~error_correct) 49 ==> When:Mar12'17-17:08:15 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-15:41:30 +Start: user:user bot:test ip: rand:1277 (~error_correct) 49 ==> When:Mar12'17-17:08:45 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-15:41:30 +Start: user:user bot:test ip: rand:1277 (~error_correct) 49 ==> When:Mar12'17-17:10:12 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-15:41:30 +Start: user:user bot:test ip: rand:1277 (~error_correct) 49 ==> When:Mar12'17-17:12:59 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-15:41:30 +Start: user:user bot:test ip: rand:1277 (~error_correct) 49 ==> When:Mar12'17-17:31:26 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-15:41:30 +Respond: user:user bot:test ip: (~error_correct) 50 你好 吗 ==> 你好 吗 你好 吗 When:Mar12'17-17:31:29 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 51 你 是 谁 啊 ==> 你 是 谁 啊 你 是 谁 啊 When:Mar12'17-17:31:32 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 52 我爱你 ==> 爱你 我爱你 When:Mar12'17-17:31:36 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 53 few ==> Few few When:Mar12'17-17:31:37 Why:~error_correct.1.0.~control.9.0 F:0 +Respond: user:user bot:test ip: (~error_correct) 54 我爱你 啊 ==> 爱你 啊 我爱你 啊 When:Mar12'17-17:31:40 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 55 fe ==> Fe fe When:Mar12'17-17:31:41 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 56 ==> When:Mar12'17-17:31:41 F:1 +Respond: user:user bot:test ip: (~error_correct) 57 ==> When:Mar12'17-17:31:41 F:0 +Respond: user:user bot:test ip: (~error_correct) 58 ==> When:Mar12'17-17:31:42 F:1 +Respond: user:user bot:test ip: (~error_correct) 59 你 真 好 ==> 你 真 好 你 真 好 When:Mar12'17-17:31:44 Why:~error_correct.1.0.~control.9.0 F:1 +Start: user:user bot:test ip: rand:1287 (~error_correct) 59 ==> When:Mar12'17-17:33:21 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-17:31:44 +Respond: user:user bot:test ip: (~error_correct) 60 : build Test reset ==> : build Test reset : build Test reset When:Mar12'17-17:33:24 Why:~error_correct.1.0.~control.9.0 F:1 +Start: user:user bot:test ip: rand:1288 (~error_correct) 60 ==> When:Mar12'17-17:35:39 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-17:33:24 +Respond: user:user bot:test ip: (~error_correct) 61 你好 ==> 你好 你好 When:Mar12'17-17:35:41 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 62 f = ==> F = f = When:Mar12'17-17:35:44 Why:~error_correct.1.0.~control.9.0 F:0 +Respond: user:user bot:test ip: (~error_correct) 63 : build Test reset ==> : build Test reset : build Test reset When:Mar12'17-17:35:47 Why:~error_correct.1.0.~control.9.0 F:1 +Start: user:user bot:test ip: rand:1291 (~error_correct) 63 ==> When:Mar12'17-17:45:48 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-17:35:47 +Respond: user:user bot:test ip: (~error_correct) 64 你好 吗 ==> 你好 吗 你好 吗 When:Mar12'17-17:45:51 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 65 : build Test ==> : build Test : build Test When:Mar12'17-17:45:58 Why:~error_correct.1.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~error_correct) 66 fe ==> Fe fe When:Mar12'17-17:46:02 Why:~error_correct.1.0.~control.9.0 F:1 +Start: user:user bot:test ip: rand:1294 (~error_correct) 66 ==> When:Mar12'17-17:47:05 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-17:46:02 +Respond: user:user bot:test ip: (~error_correct) 67 : build Test ==> : build Test : build Test When:Mar12'17-17:48:01 Why:~error_correct.1.0.~control.9.0 F:42263 +Start: user:user bot:test ip: rand:1295 (~error_correct) 67 ==> When:Mar12'17-17:53:11 Version:7.3 Build0: Build1:Mar09'17-17:35:35 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-17:48:01 +Command: :build Test reset +Start: user:user bot:test ip: rand:1228 (~segment) 0 ==> 请输入测试语句: When:Mar12'17-17:53:17 Version:7.3 Build0: Build1:Mar12'17-17:53:16 0:Mar06'17-18:27:13 F:1488796108-8.1.0.5.9.0 P:Mar12'17-17:48:01 Why:~segment.0.0.~control.9.0 +Respond: user:user bot:test ip: (~segment) 1 你好 ==> All sentences user passed into volley, before adjusted in any (originalinput) 你好 the current sentence after tokenization but before any (originalsentence) 你好 使用撇号: 你好 没有撇号: unknown-word original using no ': 你好 original using ': 你好 When:Mar12'17-17:53:22 Why:~segment.2.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 2 你好 吗 ==> All sentences user passed into volley, before adjusted in any (originalinput) 你好 吗 the current sentence after tokenization but before any (originalsentence) 你好 吗 使用撇号: 你好 吗 没有撇号: unknown-word unknown-word original using no ': 你好 吗 original using ': 你好 吗 When:Mar12'17-17:53:26 Why:~segment.2.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 3 我爱你 啊 ==> All sentences user passed into volley, before adjusted in any (originalinput) 我爱你 啊 the current sentence after tokenization but before any (originalsentence) 我爱你 啊 使用撇号: 我爱你 啊 没有撇号: unknown-word unknown-word original using no ': 我爱你 啊 original using ': 我爱你 啊 When:Mar12'17-17:53:52 Why:~segment.2.0.~control.9.0 F:1 +Respond: user:user bot:test ip: (~segment) 4 我 想 看 三 三 三世 ==> All sentences user passed into volley, before adjusted in any (originalinput) 我 想 看 三 三 三世 the current sentence after tokenization but before any (originalsentence) 我 想 看 三 三 三世 使用撇号: 我 想 看 三生三世 没有撇号: unknown-word unknown-word unknown-word unknown-word original using no ': 我 想 看 三 三 三世 original using ': 我 想 看 三 三 三世 When:Mar12'17-17:54:09 Why:~segment.2.0.~control.9.0 F:0 diff --git a/USERS/topic_user_test.txt b/USERS/topic_user_test.txt index 6aee886..691188b 100644 --- a/USERS/topic_user_test.txt +++ b/USERS/topic_user_test.txt @@ -1,34 +1,30 @@ ../USERS/topic_user_test.txt -jul2116 Mar06'17-18:27:13 Mar07'17-18:32:59 1488796108-8.1.0.5.9.0 | -19 64 0 DY 0 8 8 0 # start, input#, no rejoinder, #0topics, #1topics, layer2 +jul2116 Mar06'17-18:27:13 Mar12'17-17:54:09 1488796108-8.1.0.5.9.0 | +1 4 0 DY 0 8 8 0 # start, input#, no rejoinder, #0topics, #1topics, layer2 ~send_msg ~segment #pending -~segment + 1 PJ9V#Is*Ok3 ia ~ 0 0 +~segment + 1 n$6ARIs*Ok3 ia 4 0 0 #`end topics -$cs_trace=0 -$cs_randindex=1228 -$cs_bot=Test -$cs_login=user -$cs_token=132863 -$cs_control_main=~control -$userprompt=user: > $botprompt=Bot: +$userprompt=user: > +$cs_control_main=~control +$cs_token=132863 +$cs_login=user +$cs_bot=Test +$cs_randindex=1228 +$cs_trace=0 #`end variables 0 #set flags #`end fact sets #`end user facts 0 #context - - fe - - + 你好 + 你好 吗 + 我爱你 啊 + 我 想 看 三 三 三世 #`end user - All sentences user passed into volley, before adjusted in any (originalinput)\r\n你是谁啊\r\nthe current sentence after tokenization but before any (originalsentence)\r\n你 是 谁 啊\r\n使用撇号:\r - All sentences user passed into volley, before adjusted in any (originalinput)\r\nfew \r\nthe current sentence after tokenization but before any (originalsentence)\r\nfew\r\n使用撇号:\r\nfew\r\n没有撇号 - All sentences user passed into volley, before adjusted in any (originalinput)\r\nfe3 \r\nthe current sentence after tokenization but before any (originalsentence)\r\nfe3\r\n使用撇号:\r\nfe3\r\n没有撇号z - All sentences user passed into volley, before adjusted in any (originalinput)\r\nwho\r\nthe current sentence after tokenization but before any (originalsentence)\r\nwho\r\n使用撇号:\r\nwho\r\n没有撇号: - All sentences user passed into volley, before adjusted in any (originalinput)\r\nwh \r\nthe current sentence after tokenization but before any (originalsentence)\r\nwh\r\n使用撇号:\r\nwh\r\n没有撇号:\r\n - All sentences user passed into volley, before adjusted in any (originalinput)\r\nwhy are you so smart\r\nthe current sentence after tokenization but before any (originalsentence)\r\nwhy are you so smart\r\nz - All sentences user passed into volley, before adjusted in any (originalinput)\r\nw\r\nthe current sentence after tokenization but before any (originalsentence)\r\nw\r\n使用撇号:\r\nw\r\n没有撇号:\r\nW\r\no - All sentences user passed into volley, before adjusted in any (originalinput)\r\n你好吗\r\nthe current sentence after tokenization but before any (originalsentence)\r\n你好 吗\r\n使用撇号:\r\n你好 - All sentences user passed into volley, before adjusted in any (originalinput)\r\nfe \r\nthe current sentence after tokenization but before any (originalsentence)\r\nfe\r\n使用撇号:\r\nfe\r\n没有撇号:\r + 请输入测试语句: + All sentences user passed into volley, before adjusted in any (originalinput)\r\n你好\r\nthe current sentence after tokenization but before any (originalsentence)\r\n你好\r\n使用撇号:\r\n你好\r\n没有 + All sentences user passed into volley, before adjusted in any (originalinput)\r\n你好 吗\r\nthe current sentence after tokenization but before any (originalsentence)\r\n你好 吗\r\n使用撇号:\r\n你好 + All sentences user passed into volley, before adjusted in any (originalinput)\r\n我爱你 啊\r\nthe current sentence after tokenization but before any (originalsentence)\r\n我爱你 啊\r\n使用撇号:\r\n + All sentences user passed into volley, before adjusted in any (originalinput)\r\n我 想 看 三 三 三世\r\nthe current sentence after tokenization but before any (originalsentence)\r\n我 想 看 三 #`end chatbot diff --git a/files0.txt b/filesCn.txt similarity index 100% rename from files0.txt rename to filesCn.txt diff --git a/start_debug.sh b/start_debug.sh new file mode 100644 index 0000000..b42a9f9 --- /dev/null +++ b/start_debug.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +cd ChatScript-7.3 && gdb BINARIES/ChatScript + +# start set args users=../USERS logs=../LOGS topic=../TOPIC login=user local +# r \ No newline at end of file diff --git "a/\345\246\202\344\275\225\345\215\207\347\272\247.txt" "b/\345\246\202\344\275\225\345\215\207\347\272\247.txt" index f2ab10c..43d6496 100644 --- "a/\345\246\202\344\275\225\345\215\207\347\272\247.txt" +++ "b/\345\246\202\344\275\225\345\215\207\347\272\247.txt" @@ -52,5 +52,25 @@ cd ChatScript-7.3 && BINARIES/ChatScript \ 8. 本地运行 执行:./start_local.sh +9. 对代码的其他改动 +9.1 common.h代码的第221行增加引入preprocess.h头文件,改变之后,为: +#ifdef PRIVATE_CODE +#include "privatesrc.h" +#include "../privatecode/preprocess.h" +#endif + +9.2 mainSystem.cpp代码的第1405行更改为: +// 中文分词 +#ifdef PRIVATE_CODE +#include "../privatecode/preprocess.cpp" +#endif + +9.3 mainSystem.cpp代码的第1424行更改为: + // 增加中文分词功能 +#ifdef PRIVATE_CODE + incoming = CNPreprocess(incoming); +#endif + + Author: 何云超 2017-03-06 \ No newline at end of file