question

AndrewHoltzman-0185 avatar image
0 Votes"
AndrewHoltzman-0185 asked RobCaplan edited

Error with ML.NET tutorial on Sentiment Analysis

Hi,

Recently I began using Microsoft Docs' tutorials on ML.NET to learn Machine Learning and building apps using Model Builder. I have started with the analyzing sentiment using Razor Pages tutorial (https://docs.microsoft.com/en-us/dotnet/machine-learning/tutorials/sentiment-analysis-model-builder) but keep running into an error:

String was not recognized as a valid Boolean. on var sentiment = Convert.ToBoolean(prediction.Prediction) ? "Positive" : "Negative"; in Index.cshtml.cs

This is the code snippet I took right from the tutorial article. The code on GitHub for this sample says the same, but I keep running into this error.

Why does this occur and how can I fix this?

Thank you for your help!

dotnet-csharp
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers