The Altair Community is migrating to a new platform to provide a better experience for you. The RapidMiner Community will merge with the Altair Community at the same time. In preparation for the migration, both communities are on read-only mode from July 15th - July 24th, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here.

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?



  • Options
    skarabskarab Member Posts: 10 Contributor II

    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

  • Options
    landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    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.

Sign In or Register to comment.