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); }
internal void Add(string key, SemanticStruct semanticStruct) { dict.Add(key, semanticStruct); }