Saturday, June 25, 2011

SemanticWeb plugin for RapidMiner

Today I have released the working tool for mining SemanticWeb's data i.e. RDF resources as a plugin for RapidMiner 5.0 and 5.1.

This plugin contains several RapidMiner operators for generating feature vector, data transformation, visualization and also for data refinement. This plugin encompass two data transformation techniques FastMap and Correspondence Analysis, together with four distance matrices Levenshtein, Dice-coefficient, VDM and VDM-SetValue. The generated distance matrix and data models can also be visualized to have a better understanding of underlying process.

Please download the plugin, documentation and source code from:
http://code.google.com/p/rapidminer-semweb/

Thursday, June 16, 2011

Dump console output to a file

When a eclipse project using different frameworks like Hibernate, Spring etc etc. a lot of debug log message has been generated by these frameworks. But due to the size limit of console buffer size these log messages are overwritten. One simple solution is to increase the console buffer size but it is usually not recommended because it definitely takes more memory and effect the overall eclipse responsiveness.

Secondly, the more effective way is to keep all the debug log message of the console in a file for back trace. The easiest way is to redirect the eclipse console output to a file. For this do the following settings in eclipse:

Run (menu)-> Run Configuration -> Common (tab) -> (under) Standard Input and Output -> Check File and provide the path for the log file.

Also in some specific scenario when you want to dump the output of your program to a file another way is to set the output stream of your program like this:


OutputStream os = new FileOutputStream("C:\\test\\log.txt");
System.setOut( new PrintStream(os));
System.setErr( new PrintStream(os));
System.out.println("test message");
System.err.println("error message");



OutputStream os = new FileOutputStream("C:\\test\\log.txt");           
System.setOut( new PrintStream(os));
System.setErr( new PrintStream(os));
System.out.println("test message");
System.err.println("error message");