Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.

How to replace string in TextObject

skarabskarab Member Posts: 10 Contributor II
edited November 2018 in Help
Hi All,

Could somebody provide me information how to replace a fragment of TextObject? I can find TextCleaner but I do not know if there is one for replacing string?

Regards
skarab

Answers

  • skarabskarab Member Posts: 10 Contributor II
    See http://rapid-i.com/rapidforum/index.php/topic,1226.0.html

    My brute force solution:
    * You need to use TextObject2ExampleSet to get ExampleSet. After that work on attribute, which contains text.
    * finaly you use ValueIterator and SingleTextObjectInput to get back a TextObject

    Regards,
    skarab
  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    Hi,
    unfortunately not in RapidMiner 4.x. Originally the TextObject was only made for simpler API access on RapidMiner, so many functions where missing, which are just a line away in Java. With RapidMiner 5 and the upcoming TextProcessing Plugin there the TextObject, now named Document, is the central object during text processing and hence there is an operator for replacement.

    Greetings,
      Sebastian
Sign In or Register to comment.