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

File source as input for custom operator in Rapidminer

kamal_pradhankamal_pradhan Member Posts: 3 Contributor I
edited November 2018 in Help

i am trying to build a custom operator using the extension template available in github. i want my operator take file as an input and give example set as output. i am also using read document operator for getting the file input and using the output as an input for my operator. i have used the following code to achieve 

        FileObject fileSet = exampleSetInput.getData(FileObject.class);

but  i get the following error when i run the operator

 

SEVERE: Process failed: Wrong input of type 'Document' at port 'example set'. Expected type 'File'. 

can anybody help on how to use file source in input port of the operator ?

 

 

Tagged:

Best Answer

  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    Solution Accepted

    Hi,

    the problem is not in your code but in the way how you connect operators:

    If you use Read Document, you will create an Object of type Document, while your operator expects a FileObject. This you can produce with a Open File operator...

     

    Greetings,

     Sebastian

Sign In or Register to comment.