List of usage examples for weka.core Range indicesToRangeList
public staticString indicesToRangeList(int[] indices)
From source file:classifier.CustomStringToWordVector.java
License:Open Source License
/** * Sets which attributes are to be processed. * /*from ww w .j ava 2 s . c o m*/ * @param attributes * an array containing indexes of attributes to process. Since * the array will typically come from a program, attributes are * indexed from 0. * @throws IllegalArgumentException * if an invalid set of ranges is supplied */ public void setAttributeIndicesArray(int[] attributes) { setAttributeIndices(Range.indicesToRangeList(attributes)); }
From source file:com.openkm.kea.filter.KEAPhraseFilter.java
License:Open Source License
/** * Set which attributes are to be processed * * @param attributes an array containing indexes of attributes to select. * Since the array will typically come from a program, attributes are indexed * from 0.// www . j av a 2s. c o m */ public void setAttributeIndicesArray(int[] attributes) { setAttributeIndices(Range.indicesToRangeList(attributes)); }