00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 #ifndef __SR_SEMANTICGRAPH_H
00021 #define __SR_SEMANTICGRAPH_H
00022 
00023 
00024 
00025 #include "SR_SemprocPrefix.h"
00026 #include "pstdio.h"
00027 #include "ptypes.h"
00028 #include "srec_context.h" 
00029 #include "ESR_ReturnCode.h"
00030 
00031 
00044 typedef struct SR_SemanticGraph_t
00045 {
00051   ESR_ReturnCode(*destroy)(struct SR_SemanticGraph_t* self);
00062   ESR_ReturnCode(*load)(struct SR_SemanticGraph_t* self, wordmap* ilabels, const LCHAR* basename, int num_words_to_add);
00069   ESR_ReturnCode(*unload)(struct SR_SemanticGraph_t* self);
00070   
00078   ESR_ReturnCode(*save)(struct SR_SemanticGraph_t* self, const LCHAR* filename, int version_number);
00079   
00089   ESR_ReturnCode(*addWordToSlot)(struct SR_SemanticGraph_t* self, const LCHAR* slot, const LCHAR* word, const LCHAR* tag, const ESR_BOOL maybeMultiMeaning);
00095   ESR_ReturnCode(*reset)(struct SR_SemanticGraph_t* self);
00096 }
00097 SR_SemanticGraph;
00098 
00099 
00105 SREC_SEMPROC_API ESR_ReturnCode SR_SemanticGraphCreate(SR_SemanticGraph** self);
00106 
00107 #endif