Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
[SOLVED] Rename regular attributes generated by Text Processing
Ruca
Hi all,
I'm a newbie in using RapidMiner. I hope I'm placing my issue in the right place. But, first of all let me congratulate the support team for lunching this forum. I hope I can contribute also to solve other issues.
Going back to my problem.
I'm using the Text Processing module in order to create term vector frequencies using the TF-IDF.
The idea is to have one vector for each document processed.
Everthing is working fine, but instead of having the filename of each vector on the heading of the vector generated, I'm having several labels (att_1, att_2, att3, etc.). In this way I'm not able to associate each vector to each document.
My objective is to have each column for each document and each row corresponds to the most frequent words.
I had to perform a Transpose operation in order to have the frequent words on rows and document on columns.
Can anyone give me a hint on how to rename the labels att_1, att2, etc... to te correct filenames?
Thank you very much for your help.
Find more posts tagged with
AI Studio
Accepted answers
All comments
MariusHelf
Hi, I suppose you are using Process Documents from Files. This operator should keep the filenames of the documents at its output. Use Set Role to define that attribute as id before applying the Transpose operator: the Transpose operator uses the id attribute as column names in the transposed example set.
Best,
Marius
Ruca
Hi Marius,
Thank you very much for your clarification.
As you mention the filenames are kept, but they are at the end of the example set. That's why I was not able to detect them.
Best regards,
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups