OSDN Git Service

cf6513f98355dac8cf9bd064f6c35adaef06227d
[chnosproject/CHNOSProject.git] / CHNOSProject / AI003 / AI003 / core.h
1 //\r
2 //  core.h\r
3 //  AI003\r
4 //\r
5 //  Created by 西田 耀 on 13/01/28.\r
6 //  Copyright (c) 2013年 Hikaru Nishida. All rights reserved.\r
7 //\r
8 \r
9 #ifndef AI003_core_h\r
10 #define AI003_core_h\r
11 \r
12 #include "chnlib.h"\r
13 \r
14 #define AI_CONFIG_FILE_NAME "config.txt"\r
15 \r
16 typedef struct AI_WORKING_SET AI_WorkingSet;\r
17 struct AI_WORKING_SET {\r
18     CHNLIB_UIPArray *SystemWordList0;\r
19     CHNLIB_UIPArray *RootWordList;\r
20     CHNLIB_UIPArray *InputHistory;\r
21 };\r
22 \r
23 //@main.c\r
24 extern AI_WorkingSet WorkingSet;\r
25 CHNLIB_UIPArray *AI_Think_SlideLookUpWordByHistory(CHNLIB_String *input);\r
26 int AI_Think_CandidateWordList_Filter00(CHNLIB_UIPArray *candidatewordlist);\r
27 void AI_Memory_AddRootWordData(CHNLIB_String *tag);\r
28 int AI_Memory_AddRootWordData_IsDuplicated(const void *listtag, const void *newtag);\r
29 void AI_System_InitializeSystemWorkingSet(void);\r
30 void AI_System_LoadMemory(const char configfilename[]);\r
31 \r
32 #endif\r