NominalToString filter1 = new NominalToString(); filter1.setInputFormat(data); data = Filter.useFilter(data, filter1);
/** * Parses a given list of options. * <p/> * * <!-- options-start --> Valid options are: * <p/> * * <pre> * -C <col> * Sets the range of attributes to convert (default last). * </pre> * * <!-- options-end --> * * @param options the list of options as an array of strings * @throws Exception if an option is not supported */ @Override public void setOptions(String[] options) throws Exception { String tmpStr = Utils.getOption('C', options); if (tmpStr.length() != 0) { setAttributeIndexes(tmpStr); } else { setAttributeIndexes("last"); } if (getInputFormat() != null) { setInputFormat(getInputFormat()); } Utils.checkForRemainingOptions(options); }
/** * Parses a given list of options. * <p/> * * <!-- options-start --> Valid options are: * <p/> * * <pre> * -C <col> * Sets the range of attributes to convert (default last). * </pre> * * <!-- options-end --> * * @param options the list of options as an array of strings * @throws Exception if an option is not supported */ @Override public void setOptions(String[] options) throws Exception { String tmpStr = Utils.getOption('C', options); if (tmpStr.length() != 0) { setAttributeIndexes(tmpStr); } else { setAttributeIndexes("last"); } if (getInputFormat() != null) { setInputFormat(getInputFormat()); } Utils.checkForRemainingOptions(options); }