Example #1
0
        private SemanticStruct createStruct(SemanticValue init)
        {
            SemanticStruct result = new SemanticStruct();

            if (init.Value != null)
            {
                result.value      = init.Value;
                result.confidence = init.Confidence;
            }
            foreach (KeyValuePair <String, SemanticValue> child in init)
            {
                result.Add(child.Key, createStruct(child.Value));
            }
            return(result);
        }
Example #2
0
 internal void Add(string key, SemanticStruct semanticStruct)
 {
     dict.Add(key, semanticStruct);
 }