mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r821736 - /lucene/mahout/trunk/examples/src/main/java/org/apache/mahout/classifier/bayes/WikipediaXmlSplitter.java
Date Mon, 05 Oct 2009 10:13:50 GMT
Author: srowen
Date: Mon Oct  5 10:13:50 2009
New Revision: 821736

URL: http://svn.apache.org/viewvc?rev=821736&view=rev
Log:
MAHOUT-183

Modified:
    lucene/mahout/trunk/examples/src/main/java/org/apache/mahout/classifier/bayes/WikipediaXmlSplitter.java

Modified: lucene/mahout/trunk/examples/src/main/java/org/apache/mahout/classifier/bayes/WikipediaXmlSplitter.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/examples/src/main/java/org/apache/mahout/classifier/bayes/WikipediaXmlSplitter.java?rev=821736&r1=821735&r2=821736&view=diff
==============================================================================
--- lucene/mahout/trunk/examples/src/main/java/org/apache/mahout/classifier/bayes/WikipediaXmlSplitter.java
(original)
+++ lucene/mahout/trunk/examples/src/main/java/org/apache/mahout/classifier/bayes/WikipediaXmlSplitter.java
Mon Oct  5 10:13:50 2009
@@ -117,9 +117,10 @@
         boolean end = false;
         while(thisLine.trim().startsWith("</page>") == false){
           content.append(thisLine).append('\n');
-          if (it.hasNext()){
+          if (it.hasNext()) {
             thisLine = it.next();
-            end=true;
+          } else {
+            end = true;
             break;
           }
         }



Mime
View raw message