"Loop over Tokens in RapidMiner"

eisioriginal
eisioriginal New Altair Community Member
edited November 5 in Community Q&A
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

  • RWingerter
    RWingerter New Altair Community Member
    Hi Andreas,

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

    Roland

  • MariusHelf
    MariusHelf New Altair Community Member
    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