3 instantiations of SemanticValue
System.Speech (3)
Result\RecognizedPhrase.cs (3)
444
_semantics = new
SemanticValue
("<ROOT>", null, _confidence);
468
SemanticValue semanticValue =
new
(ruleTree._name, null, ruleTree._confidence);
736
return new
SemanticValue
(propertyName, propertyValue, property.SREngineConfidence);
59 references to SemanticValue
System.Speech (59)
Result\RecognizedPhrase.cs (25)
218
public
SemanticValue
? Semantics
466
private static
SemanticValue
RecursiveBuildSemanticProperties(IList<RecognizedWordUnit> words, List<ResultPropertiesRef> properties, RuleNode ruleTree, GrammarOptions semanticTag, ref Collection<
SemanticValue
>? dupItems)
468
SemanticValue
semanticValue = new(ruleTree._name, null, ruleTree._confidence);
474
SemanticValue
childrenSemantics = RecursiveBuildSemanticProperties(words, properties, children, semanticTag, ref dupItems);
477
foreach (KeyValuePair<string,
SemanticValue
> kv in childrenSemantics._dictionary)
549
SemanticValue
thisSemanticValue = ExtractSemanticValueInformation(semanticsOffset, property, phraseBuffer, isSapi53Header, out propertyName);
575
private void RecursivelyExtractSemanticValue(IntPtr phraseBuffer, int semanticsOffset,
SemanticValue
semanticValue, IList<RecognizedWordUnit> words, bool isSapi53Header, GrammarOptions semanticTag)
582
SemanticValue
thisSemanticValue = ExtractSemanticValueInformation(semanticsOffset, property, phraseBuffer, isSapi53Header, out propertyName);
613
private static void InsertSemanticValueToDictionary(
SemanticValue
semanticValue, string propertyName,
SemanticValue
thisSemanticValue, GrammarOptions semanticTag, ref Collection<
SemanticValue
>? dupItems)
652
dupItems ??= new Collection<
SemanticValue
>();
653
SemanticValue
s = semanticValue._dictionary[key];
660
private static
SemanticValue
ExtractSemanticValueInformation(int semanticsOffset, SPSERIALIZEDPHRASEPROPERTY property, IntPtr phraseBuffer, bool isSapi53Header, out string propertyName)
808
private static bool TryExecuteOnParse(RuleNode ruleRef,
SemanticValue
value, IList<RecognizedWordUnit> words, out object? newValue, ref Exception? exceptionThrown)
854
private static bool ExecuteOnParse(Grammar grammar, RuleNode ruleRef,
SemanticValue
value, IList<RecognizedWordUnit> words, out object? newValue)
1058
private void AppendPropertiesSML(XmlDocument document, XmlElement alternateNode,
SemanticValue
? semanticsNode, NumberFormatInfo nfo)
1062
foreach (KeyValuePair<string,
SemanticValue
> kv in semanticsNode)
1110
private void AppendAttributes(XmlElement propertyNode,
SemanticValue
semanticValue)
1112
foreach (KeyValuePair<string,
SemanticValue
> kv in semanticValue)
1196
internal
SemanticValue
_value;
1199
internal ResultPropertiesRef(string name,
SemanticValue
value, RuleNode ruleNode)
1216
private
SemanticValue
? _semantics;
1228
private Collection<
SemanticValue
>? _dupItems;
Result\SemanticValue.cs (34)
15
public sealed class SemanticValue : IDictionary<string,
SemanticValue
>
24
_dictionary = new Dictionary<string,
SemanticValue
>();
40
SemanticValue
? refObj = obj as
SemanticValue
;
46
foreach (KeyValuePair<string,
SemanticValue
> kv in _dictionary)
91
public
SemanticValue
this[string key]
96
public bool Contains(KeyValuePair<string,
SemanticValue
> item)
112
void ICollection<KeyValuePair<string,
SemanticValue
>>.Add(KeyValuePair<string,
SemanticValue
> key)
117
void IDictionary<string,
SemanticValue
>.Add(string key,
SemanticValue
value)
122
void ICollection<KeyValuePair<string,
SemanticValue
>>.Clear()
127
bool ICollection<KeyValuePair<string,
SemanticValue
>>.Remove(KeyValuePair<string,
SemanticValue
> key)
132
bool IDictionary<string,
SemanticValue
>.Remove(string key)
136
void ICollection<KeyValuePair<string,
SemanticValue
>>.CopyTo(KeyValuePair<string,
SemanticValue
>[] array, int index)
138
((ICollection<KeyValuePair<string,
SemanticValue
>>)_dictionary).CopyTo(array, index);
140
IEnumerator<KeyValuePair<string,
SemanticValue
>> IEnumerable<KeyValuePair<string,
SemanticValue
>>.GetEnumerator()
145
bool ICollection<KeyValuePair<string,
SemanticValue
>>.IsReadOnly
150
ICollection<string> IDictionary<string,
SemanticValue
>.Keys
155
ICollection<
SemanticValue
> IDictionary<string,
SemanticValue
>.Values
161
return ((IEnumerable<KeyValuePair<string,
SemanticValue
>>)this).GetEnumerator();
164
bool IDictionary<string,
SemanticValue
>.TryGetValue(string key, [NotNullWhen(true)] out
SemanticValue
? value)
185
internal Dictionary<string,
SemanticValue
> _dictionary;
204
public SemanticValueDebugDisplay(
SemanticValue
value)
244
public
SemanticValue
[] AKeys
248
SemanticValue
[] keys = new
SemanticValue
[_dictionary.Count];
250
foreach (KeyValuePair<string,
SemanticValue
> kv in _dictionary)
261
private Dictionary<string,
SemanticValue
> _dictionary;