Input text format to Multilingual Text Classification model

Hello,

I am build a POC on Multi lingual model.

I have the general dataset with “I hate this movie” like texts.

Not sure on how to give these text as inputs in ML skill activity.

ML Skill activity has drop down with JSON/File/Files as input type. How to give text as input here?
Am I missing any specific instruction? Please help.

@shubhamkumar.tiwari

Just select json and pass the text as string…that should work

Cheers

Have given input like this - “{”“text”" : “”" + Inputtext +“”“}”

Getting Object reference Null for confidence.

Please point out what is wrong or missing here.

Update on this.

I missed that I am getting response but not able to get value of confidence from JSON object.

JsonResponse - “{"class": "Positive", "confidence": 0.7368321418762207}”

JsonObject - JObject(2) { JProperty(1) { [Positive] }, JProperty(1) { [0.736832141876221] } }

Please guide how to fetch values from json object.
I was trying with following syntax: jsonObj.Item(“confidence”).ToString

@shubhamkumar.tiwari

jobj("confidence").TOString

cheers

Thanks for the replies Anil.
Syntax is correct which I used only I misspelled ‘‘confidence’’ hence was the error. Sorted.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.