Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
VoltesDev
Helper V
Helper V

Fabric : Data Science - IllegalArgumentException: AnalyzeText parameter kind given invalid value

Hello guys,

 

I'm just jump in this world of "Fabric" and not sure this is the correct forum. Also not sure how to describe my problem here, but I gotta give it a try.

 

So, I'm learning Fabric end-to-end scenario, with source is API. In one of the scenario, While the table already created and populated in OneLake-Lakehouse, I need to include Data Science of it.

 

So in my Notebook, I've run this command and no issue :

 

df = spark.sql("SELECT * FROM bing_lake.tbl_latest_news")
display(df)

 

it ran like it supposed to ->

VoltesDev_0-1718643658063.png

 

and added few other code and succeeded :

 

import synapse.ml.core
from synapse.ml.services import AnalyzeText

#Import the model and configure the input and output columns
model = (AnalyzeText()
        .setTextCol("description")
        .setKind("SentimentAnalyis")
        .setOutputCol("response")
        .setErrorCol("error"))

 

 

But after this code below, I'm hit error:

#Apply the model to our dataframe
result = model.transform(df)

VoltesDev_1-1718643828520.png

VoltesDev_2-1718643884610.png

May I know what error is this and how to resolve it.

 

Thanks.

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @VoltesDev ,

 

My guess is that in the setKind method, "SentimentAnalysis" should be used instead of "SentimentAnalyis".

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @VoltesDev ,

 

My guess is that in the setKind method, "SentimentAnalysis" should be used instead of "SentimentAnalyis".

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Hi Scott,

 

Thanks for your "eagle eye". 🤒

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.