Apache Lucene open-source search software
[LUCENE-4345] - fixed javadoc for DatasetSplitter
Tommaso Teofili0602a9fc1662
diff --git a/lucene/classification/src/java/org/apache/lucene/classification/utils/DatasetSplitter.java b/lucene/classification/src/java/org/apache/lucene/classification/utils/DatasetSplitter.javaindex 5f1f6074a72..1a2b970dc48 100644--- a/lucene/classification/src/java/org/apache/lucene/classification/utils/DatasetSplitter.java+++ b/lucene/classification/src/java/org/apache/lucene/classification/utils/DatasetSplitter.java@@ -48,6 +48,16 @@ public class DatasetSplitter {this.testRatio = testRatio;}+ /**+ * Split a given index into 3 indexes for training, test and cross validation tasks respectively+ * @param originalIndex an {@link AtomicReader} on the source index+ * @param trainingIndex a {@link Directory} used to write the training index+ * @param testIndex a {@link Directory} used to write the test index+ * @param crossValidationIndex a {@link Directory} used to write the cross validation index+ * @param analyzer {@link Analyzer} used to create the new docs+ * @param fieldNames names of fields that need to be put in the new indexes or <code>null</code> if all should be used+ * @throws IOException if any writing operation fails on any of the indexes+ */public void split(AtomicReader originalIndex, Directory trainingIndex, Directory testIndex, Directory crossValidationIndex,Analyzer analyzer, String... fieldNames) throws IOException {