About Gain Ratio Rapid Miner

Rana_ibrahim_351
Rana_ibrahim_351 New Altair Community Member
edited November 2024 in Community Q&A
Hello every one hope so every one will be fine. How to apply gain ratio to csv file having no integers only text for sentimental analysis
Tagged:

Answers

  • Rana_ibrahim_351
    Rana_ibrahim_351 New Altair Community Member
    Answer required as soon as possible please

  • jacobcybulski
    jacobcybulski New Altair Community Member
    First you need to read the CSV file in, i assume you have a label in for training, then process documents into tf-idf format, so all text becomes numbers, so now you can weigh by gain ratio your columns against the label, and use it to select attributes by weight. This will reduce 1000s of text-derived attributes to perhaps 100s as per your specification of selection parameters. Alternatively if you do not have a label, simply use the Extract Sentiment operator from the Operator Toolbox extension.