The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
how to count "exampleword" in tweet
Mustafa_AVDAN
Member Posts: 34 Contributor I
hello again;Im sorry to I asked the same question , but I need some help for my project and ı cant continue...Anybody help me?How can I count "HASTAGHWORD" at each tweets in rapid miner?which operator can help me?ı didnt use Exel , this picture is just for example...I will got tweets with Search tweet Operator, after that ı will count some words,on the Search tweet dataset.Finally ı will generate a new column and ı will add this value of counter to my new column for each row(each tweets)...Please help me ; I must do it this week!:[
Tagged:
0
Answers
Hi @Mustafa_AVDAN,
One starting point might be to use the Split Operator and split the examples by HASHTAGWORD...
On the other side, you may also take a look at the Text Processing extension. The Operators in there could also help.
Best regards,
Edin
Hi Mustafa,
If you have Python installed on your computer, you can use the "Execute Python" operator (to download and install from Marketplace).
There are only 5 lines of codes to perform the wanted task.
From the "Search Twitter" operator, i added a "select attribute" operator to retain only the "Text" attribute where there are the Tweets.
To modify your hashtagword, you have just to :
- Click on "Execute Python" operator -> parameters -> Edit text
- in the code, set hashtagword = "xxxxx" where xxxxx is your wanted hashtagword
Here the process :
I hope this will be helpful,
Regards,
Lionel
Hi again @Mustafa_AVDAN
After further investigation, your task is possible without Python.
1. First you have to download and install the Text Processing extension from the marketplace.
2. Here the process :
3. Set your "hashtagword" in the "select Attributes(2)" operator parameters :
for example in this process, I have perform some tests with the word "of". So you have to replace of
by your own hashtagword in the regular expression parameter :
4. The results view looks like this :
I think you have now response elements.
Regards,
Lionel
Hi @Mustafa_AVDAN again (and again)
You can find a second release of the last process more in the "RM spirit" (easier to use and with note)
Here the process :