algorithmic modeling for Rhino
Hi,
I am trying to filter a list of words (taken from titles of Flickr photos), and I want to create a tag cloud from said photo titles. I have created tools to distill the titles into separate words, and now I need to test and filter for certain words in order to get a meaningful output list. For example, if the title of a photo is 'at Bryant Park in NYC' I would need the ability to filter out 'at' and 'in' and return just 'Bryant' 'Park' and 'NYC'.
I have built a tool that distills the text into numeric values (a=[1], b=[2], n=[14], etc.), shown in the attached image as the 'Txt>Num' component. I cannot, however, figure out how to test and filter for certain words. The equality component is where my mind is headed, which is why I'm attempting to convert letters to numbers.
In short, I want to remove the words from the lower white panel from the list in the upper white panel.
Thanks in advance for any help!
cb
Tags:
Hey Christopher,
Did you ever find a solution to your problem? I find Grasshopper's string manipulation components to be rather sparse. I have tried searching for some plugins that could help with this but to no avail. It's possible that I haven't looked hard enough yet. But I love the linear flow of logic that Grasshopper has. It makes it a great environment for all sorts of programming challenges -- even ones unrelated to geometry. Either way, I am currently trying to make a web-crawler with cross referencing and filtering functionality (a simple undertaking), but I cannot find a powerful way of stripping html tags from the *.html file. Since our problems are somewhat related, I wanted to see if you made any progress and would be willing to help me out. Many thanks!
Hi,
take this one (little C# component used)
Best,
Raul
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by