I’m using the Watson NLU to do some text analysis. Per the Watson NLU documentation it states that the categories returned by Watson should be stored in a KeyValuePair: “The category which the specified text belongs to, stored in a list of <KeyValuePair<String,Double>> variable.”
I have created a variable, categories, of type System.Collections.Generic.KeyValuePair<System.String, System.Double>.
UI Path is returning the following error:
Error ERROR Validation Error Compiler error(s) encountered processing expression "categories".
Value of type ‘System.Collections.Generic.KeyValuePair(Of String, Double)’ cannot be converted to ‘System.Collections.Generic.IEnumerable(Of System.Collections.Generic.KeyValuePair(Of String, Double))’.
How can I convert the KeyValuePair to an IEnumerable?
Thanks.