Grasshopper

algorithmic modeling for Rhino

I was wondering if there was anyway to do a basic sentiment analysis either directly through grasshopper or through a C# component. I don't need to rank statements I just need to assess whether they are positive or negative.

I want to be able to take tweets and find the number of positive and negative tweets in the list.

I hope someone can help!!

Math 

Views: 457

Replies to This Discussion

public bool TestIfPositive(string Text, SocialNetwork Net)
{
if (Net is Twitter) {
return false;
}
}

Have you tried to find a library that lets you do this? 

I am quite new to coding in C# so i wasn't sure how you used libraries in grasshopper, ones that i found talked about importing sdk, is this possible in grasshopper ??

Thanks for the quick reply 

Yes you can reference .NET dlls in the C# component, and you can invoke unmanaged dlls using PInvoke statements. It's also possible to access web-based APIs. The latter two aren't particularly easy so if you're just starting out with C# that may be a bit of a stretch.

What sort of api are you looking to use?

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service