Refer to the SR_SemanticProcessor.h documentation to find out more about parsing, and about semantic interpretation (eScript).
Data Fields | |
ESR_ReturnCode(* | destroy )(struct SR_SemanticGraph_t *self) |
ESR_ReturnCode(* | load )(struct SR_SemanticGraph_t *self, wordmap *ilabels, const LCHAR *basename, int num_words_to_add) |
ESR_ReturnCode(* | unload )(struct SR_SemanticGraph_t *self) |
ESR_ReturnCode(* | save )(struct SR_SemanticGraph_t *self, const LCHAR *filename, int version_number) |
ESR_ReturnCode(* | addWordToSlot )(struct SR_SemanticGraph_t *self, const LCHAR *slot, const LCHAR *word, const LCHAR *tag, const ESR_BOOL maybeMultiMeaning) |
ESR_ReturnCode(* | reset )(struct SR_SemanticGraph_t *self) |
ESR_ReturnCode(* SR_SemanticGraph::destroy)(struct SR_SemanticGraph_t *self) |
ESR_ReturnCode(* SR_SemanticGraph::load)(struct SR_SemanticGraph_t *self, wordmap *ilabels, const LCHAR *basename, int num_words_to_add) |
Loads a semantic graph from disk.
self | SR_SemanticGraph handle | |
ilabels | Input word labels to be used when building the graph (The should be the same as the output word labels from the recognition graph/context.) | |
basename | File to read graph from (.g2g image or basename for text files) | |
num_words_to_add | Number of words to add dynamically (only applies when loading from text files) |
ESR_ReturnCode(* SR_SemanticGraph::unload)(struct SR_SemanticGraph_t *self) |
ESR_ReturnCode(* SR_SemanticGraph::save)(struct SR_SemanticGraph_t *self, const LCHAR *filename, int version_number) |
Saves the semantic graph as a binary image.
self | SR_SemanticGraph handle | |
filename | Name of the binary image file. | |
version_number | Target file format version. |
ESR_ReturnCode(* SR_SemanticGraph::addWordToSlot)(struct SR_SemanticGraph_t *self, const LCHAR *slot, const LCHAR *word, const LCHAR *tag, const ESR_BOOL maybeMultiMeaning) |
Adds a word to the semantic graph at the specified slot. Tag may be defined or NULL.
self | SR_SemanticGraph handle | |
slot | Where to insert in graph (only ROOT supported right now) | |
word | Word to add. | |
word | Semantic Tag for the word. | |
maybeMultiMeaning | Indicates that we MAY be adding alternate multiple meanings a previously added word |
ESR_ReturnCode(* SR_SemanticGraph::reset)(struct SR_SemanticGraph_t *self) |