Single quotes in labels of arff files
Single quotes in Weka are used to surround strings with spaces or other special characters (see spaces in labels of ARFF files). If some of your labels contain single quotes, you have to escape them with a backslash. For example, the name of one of Alexandre Duma's musketeers is
and needs to be quoted and escaped as follows Using the Weka API, you can use thequote(String)
method of the weka.core.Utils
class for doing this: