Single+quotes+in+labels+of+ARFF+files

= 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 code format="text" D'Artagnan code and needs to be quoted and escaped as follows code format="text" 'D\'Artagnan' code Using the Weka API, you can use the method of the  class for doing this: code format="java" import weka.core.Utils; ... String raw = "D'Artagnan"; String escaped = Utils.quote(raw); code