You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by to...@apache.org on 2014/08/08 15:44:09 UTC
svn commit: r1616755 -
/lucene/dev/trunk/lucene/classification/src/java/org/apache/lucene/classification/utils/DocToDoubleVectorUtils.java
Author: tommaso
Date: Fri Aug 8 13:44:09 2014
New Revision: 1616755
URL: http://svn.apache.org/r1616755
Log:
LUCENE-5878 - fixing missing javadoc in DocToDoubleVectorUtils
Modified:
lucene/dev/trunk/lucene/classification/src/java/org/apache/lucene/classification/utils/DocToDoubleVectorUtils.java
Modified: lucene/dev/trunk/lucene/classification/src/java/org/apache/lucene/classification/utils/DocToDoubleVectorUtils.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/classification/src/java/org/apache/lucene/classification/utils/DocToDoubleVectorUtils.java?rev=1616755&r1=1616754&r2=1616755&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/classification/src/java/org/apache/lucene/classification/utils/DocToDoubleVectorUtils.java (original)
+++ lucene/dev/trunk/lucene/classification/src/java/org/apache/lucene/classification/utils/DocToDoubleVectorUtils.java Fri Aug 8 13:44:09 2014
@@ -32,7 +32,7 @@ public class DocToDoubleVectorUtils {
* @param docTerms term vectors for a given document
* @param fieldTerms field term vectors
* @return a sparse vector of <code>Double</code>s as an array
- * @throws IOException
+ * @throws IOException in case accessing the underlying index fails
*/
public static Double[] toSparseLocalFreqDoubleArray(Terms docTerms, Terms fieldTerms) throws IOException {
TermsEnum fieldTermsEnum = fieldTerms.iterator(null);
@@ -64,7 +64,7 @@ public class DocToDoubleVectorUtils {
* create a dense <code>Double</code> vector given doc and field term vectors using local frequency of the terms in the doc
* @param docTerms term vectors for a given document
* @return a dense vector of <code>Double</code>s as an array
- * @throws IOException
+ * @throws IOException in case accessing the underlying index fails
*/
public static Double[] toDenseLocalFreqDoubleArray(Terms docTerms) throws IOException {
Double[] freqVector = null;