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.

"Extract Filename from Process Documents to use in Join"

mobmob Member Posts: 37 Contributor II
edited June 2019 in Help
I have a folder of documents where the filename of each is needed to "join" the text contents with another dataset. Is it possible to extract the filename, remove the extension and add it to the results in some way so I can associate the 2nd dataset with the contents of the file

At the moment I'm using the process documents from folder operator but I'm not sure how to get from there to where I want to go

Answers

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,529 RM Data Scientist
    Why not use loop files and Generate Attributes with %{filename}?

    This should work.

    ~Martin
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • mobmob Member Posts: 37 Contributor II
    If the filename was also contained within the text inside the file would it be possible to use "Process Documents" operator
  • haddockhaddock Member Posts: 849 Maven
    Absolutely
Sign In or Register to comment.