vadersharp
vadersharp copied to clipboard
FormatException: Input string was not in a correct format.
For your information your component is crashing right at initialization:
SentimentIntensityAnalyzer analyzer = new SentimentIntensityAnalyzer();
System.TypeInitializationException: 'The type initializer for 'VaderSharp.SentimentIntensityAnalyzer' threw an exception
FormatException: Input string was not in a correct format.
I think it's because I have to create the "ConfigStore" somewhere. I'll figure it out...
Hey John what version of .NET are you running? And does this happen even if you init in an empty project? If you can reproduce in a sample app I can take a look because it seems to be working okay for me.
I had the same issue. I think that happens because you try to parse something like a double when German uses a , instead of a . or something...
Workaround: Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture;
@codingupastorm If you try to set the CurrentCulture to German it should be reproducable.