Skip to content

Commit 4306ed4

Browse files
committed
org imports in text pipeline
1 parent 6e7c1c7 commit 4306ed4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/src/main/scala/org/apache/spark/examples/ml/SimpleTextClassificationPipeline.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@
1717

1818
package org.apache.spark.examples.ml
1919

20-
import org.apache.spark.sql.{StringType, DataType, SQLContext}
21-
2220
import scala.beans.BeanInfo
2321

2422
import org.apache.spark.{SparkConf, SparkContext}
2523
import org.apache.spark.ml.{Pipeline, UnaryTransformer}
2624
import org.apache.spark.ml.classification.LogisticRegression
2725
import org.apache.spark.ml.feature.HashingTF
2826
import org.apache.spark.ml.param.ParamMap
27+
import org.apache.spark.sql.{DataType, SQLContext, StringType}
2928

3029
@BeanInfo
3130
case class LabeledDocument(id: Long, text: String, label: Double)

0 commit comments

Comments
 (0)