Texblob similar function in rapidMiner

HeikoeWin786
HeikoeWin786 New Altair Community Member
edited November 2024 in Community Q&A
Dear all,

I want to calculate subjectivity for each of the user review comment in my dataset i.e. in excel. I learnt Textblob in Python can detect the subjectivity.  But, I am not sure which operator to be used in rapid miner.
Basically, I want to identify the subjectivity of each user comments by subjectivity score for each sentence. The comments are in excel, the output is to add one new column as subjectivity score. 

Could you kindly please share any idea on this?

Thanks much in advance,
Heikoe 
Tagged:

Best Answer

  • kayman
    kayman New Altair Community Member
    Answer ✓
    You can use the python operator and just use textblob as you are used to. The recordset is converted into a pandas frame (and returned as one), You could iterate to the pandas frame (or use a lambda function) , add the subjectivity score as a new field and it will be added to the output so you get it as a new attribute.

Answers

  • kayman
    kayman New Altair Community Member
    Answer ✓
    You can use the python operator and just use textblob as you are used to. The recordset is converted into a pandas frame (and returned as one), You could iterate to the pandas frame (or use a lambda function) , add the subjectivity score as a new field and it will be added to the output so you get it as a new attribute.
  • HeikoeWin786
    HeikoeWin786 New Altair Community Member
    @kayman
    Hello Kayman, I had tried that and it works as explained. superb! Thanks much for your explanation here :)

    Best regards,
    Heikoe