mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apalu...@apache.org
Subject svn commit: r1675715 - /mahout/site/mahout_cms/trunk/content/users/environment/classify-a-doc-from-the-shell.mdtext
Date Thu, 23 Apr 2015 20:00:37 GMT
Author: apalumbo
Date: Thu Apr 23 20:00:37 2015
New Revision: 1675715

URL: http://svn.apache.org/r1675715
Log:
fix a couple of things

Modified:
    mahout/site/mahout_cms/trunk/content/users/environment/classify-a-doc-from-the-shell.mdtext

Modified: mahout/site/mahout_cms/trunk/content/users/environment/classify-a-doc-from-the-shell.mdtext
URL: http://svn.apache.org/viewvc/mahout/site/mahout_cms/trunk/content/users/environment/classify-a-doc-from-the-shell.mdtext?rev=1675715&r1=1675714&r2=1675715&view=diff
==============================================================================
--- mahout/site/mahout_cms/trunk/content/users/environment/classify-a-doc-from-the-shell.mdtext
(original)
+++ mahout/site/mahout_cms/trunk/content/users/environment/classify-a-doc-from-the-shell.mdtext
Thu Apr 23 20:00:37 2015
@@ -26,13 +26,13 @@ For now, lets take the script apart piec
 
 ## Imports
 
-Our Mahout Naive Bayes Imports:
+Our Mahout Naive Bayes imports:
 
     import org.apache.mahout.classifier.naivebayes._
     import org.apache.mahout.classifier.stats._
     import org.apache.mahout.nlp.tfidf._
 
-Hadoop Imports needed to read our dictionary:
+Hadoop imports needed to read our dictionary:
 
     import org.apache.hadoop.io.Text
     import org.apache.hadoop.io.IntWritable
@@ -231,7 +231,6 @@ The label with the highest score wins th
     def classifyText(txt: String): String = {
         val v = vectorizeDocument(txt, dictionaryMap, dfCountMap)
         classifyDocument(v)
-
     }
 
 ## Now we can simply call our classifyText(...) method on any String



Mime
View raw message