Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
How to convert ratings (1 to 10) to 3 classes (negative, neutral, positive)
Amika
I would like to convert ratings (1 to 10) to three disjoint classes representing the polarity of sentiment review (negative, neutral, positive). Is there any function in Rapidminor allows me to do so?
Find more posts tagged with
AI Studio
Sentiment Analysis
Accepted answers
Caperez
Hi
@Amika
,
You can use the Generate Attributes operator nd implement an anidated conditional with your rating Attribute (colum), something like this.
if(yourratingattribute<=3,"Negative", if((yourratingattribute>3&&yourratingattribute<=7),"Neutral", "Positive"))
Best.
All comments
Caperez
Hi
@Amika
,
You can use the Generate Attributes operator nd implement an anidated conditional with your rating Attribute (colum), something like this.
if(yourratingattribute<=3,"Negative", if((yourratingattribute>3&&yourratingattribute<=7),"Neutral", "Positive"))
Best.
Telcontar120
You can also use the Map operator to do this if the original attribute is nominal and not numerical data type.
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups