Boolean Algebra

Zaramot
Zaramot New Altair Community Member
edited November 2024 in Community Q&A
Hello All. Im new to Rapidminer and using it for Textmining. I want to know if its possible to do boolean Algebra with it. Like i want to set 2 or more values. Something like "Customer" and "friendly". If these values appear in 1 sentence, than the textmining should show me the sentence and give it out. Is it possible to do something like that? I hope you can understand my english. It is not the greatest :)
thank you all in advance
Tagged:

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee

    what you can do is split into sentences and then 'missuse' the Dictionary Based Sentiment operator to create a 'flag'. Not sure if this is the most elegant version of it.

    And don't worry about your English. Its good. we can switch to German if needed though.

    Best,
    Martin
  • Zaramot
    Zaramot New Altair Community Member
    Can you explain that in german to me pls?
  • MartinLiebig
    MartinLiebig
    Altair Employee
    edited August 2020

    ja klar. Was du machen kannst ist dein Dokument erst in Sätze aufteilen (Ich denke mit Cut Document?). Danach kannst du 'Dictionary Based Sentiment' "kreativ" einsetzen.
    Dictionary Based Sentiment geht einfach nur einmal über das Dokument und schaut ob bestimmte Wörter aus einem Wörterbuch vorhanden sind. Wenn ja dann summiert es die entsprechenden Gewichte auf. Der Gedanke hier ist, dass man positive Wörter zählt und dann weiss wie positiv der text ist.
    Du kannst halt einfach ein Wörterbuch der Form

    Word    Weight
    Customer   1
    friendly    1

    nutzen. Problematisch wirds erst wenn Wörter doppelt vorkommen etc. Da muss man dann direkt schauen.

    Alternativ kann man denke ich auch Generate Attrributes nutzen mit
    matches(Text,.*Customer.*)
    Ist halt die Frage was genau so vorkommen kann.

    LG,
    Martin