The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 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

"Loop over Tokens in RapidMiner"

eisioriginaleisioriginal Member Posts: 4 Contributor I
edited June 2019 in Help
Hello,

is there any possibility to iterate over the tokens of a text document within RapidMiner? My first try was to window the document after tokenisation. But then the rest of my intended operations are very complicated.

I'm doing this to simulate the creation of a language model like Katz Backoff and so on. Maybe there is a better way to produce language models but in the moment i can only think of iterating the tokens and calculate the values and store them into an example set.

Thank you

Andreas

Answers

  • RWingerterRWingerter Member Posts: 38 Contributor II
    Hi Andreas,

    maybe you can use the "Generate n-Grams (Terms)" operator.

    Roland

  • MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    Hi,

    to loop over the tokens you can use the Loop Attributes operator, since each token is represented by a single attribute.

    Best regards,
    Marius
Sign In or Register to comment.