Crea sito

Archivio per agosto 2011

How to use Snowball Stemmer with weka

Snowball Stemmer with weka: what is weka and how to use Snowball Stemmer Brief introduction of Weka: Weka is a Data Mining Software under the GNU General Public License. It is a collection of machine learning algorithms for data mining tasks. The algorithms can either be applied directly to a dataset or called from your own Java code. […]

How to delete or substitute a newline using sed

How can you delete or substitute a newline using sed? Unix shell command to delete all newlines from a file using sed:  sed ‘:a;N;$!ba;s/\n//g’   input_file   Unix shell command to substitute all newlines from a file with an other string using sed:  sed ‘:a;N;$!ba;s/\n/new_string/g’   input_file   Example: substitute all newlines with the string […]