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
[Solved]Removing a truncated URL from a full URL
Kate_Strydom
Member Posts: 19 Contributor II
Good Morning,
Does anyone know how to remove a truncated URL from a full URL in RapidMiner?
I have two attributes:
truncated URL full URL
http://www.unisa.ac.za www.unisa.ac.za/news/index.php/2014/03/changes-to-mayjune-2014-examination-period/
I would like the new attribute to have
/news/index.php/2014/03/changes-to-mayjune-2014-examination-period
I have converted the attributes from nominal to text attributes.
Thanks for the help.
Regards
Kate
Does anyone know how to remove a truncated URL from a full URL in RapidMiner?
I have two attributes:
truncated URL full URL
http://www.unisa.ac.za www.unisa.ac.za/news/index.php/2014/03/changes-to-mayjune-2014-examination-period/
I would like the new attribute to have
/news/index.php/2014/03/changes-to-mayjune-2014-examination-period
I have converted the attributes from nominal to text attributes.
Thanks for the help.
Regards
Kate
0
Answers
I have created a small process which can do that. Note that in your example your truncated url starts with a http:// while your full url does not. I have assumed your actual data does not contain different prefixes. If you need to remove the http:// first, just add another "Replace" operator after retrieving your data and replace 'http://' with an empty string. Regards,
Marco
Thanks so much. The code works well.
Regards
Kate