You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@predictionio.apache.org by sh...@apache.org on 2017/05/12 00:48:08 UTC
incubator-predictionio-template-text-classifier git commit: Fix
warnings
Repository: incubator-predictionio-template-text-classifier
Updated Branches:
refs/heads/master b24325a39 -> fadef4318
Fix warnings
closes #13
Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-text-classifier/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-text-classifier/commit/fadef431
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-text-classifier/tree/fadef431
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-text-classifier/diff/fadef431
Branch: refs/heads/master
Commit: fadef4318cd166fb4423455d4e9a72edc6057be1
Parents: b24325a
Author: Naoki Takezoe <ta...@apache.org>
Authored: Fri May 12 09:46:41 2017 +0900
Committer: Shinsuke Sugaya <sh...@apache.org>
Committed: Fri May 12 09:46:41 2017 +0900
----------------------------------------------------------------------
src/main/scala/Engine.scala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-text-classifier/blob/fadef431/src/main/scala/Engine.scala
----------------------------------------------------------------------
diff --git a/src/main/scala/Engine.scala b/src/main/scala/Engine.scala
index 16d47ac..abe8778 100644
--- a/src/main/scala/Engine.scala
+++ b/src/main/scala/Engine.scala
@@ -1,6 +1,6 @@
package org.example.textclassification
-import org.apache.predictionio.controller.IEngineFactory
+import org.apache.predictionio.controller.EngineFactory
import org.apache.predictionio.controller.Engine
/** Define Query class which serves as a wrapper for
@@ -22,7 +22,7 @@ case class PredictedResult(
case class ActualResult(category: String) extends Serializable
/** Define Engine */
-object TextClassificationEngine extends IEngineFactory {
+object TextClassificationEngine extends EngineFactory {
def apply() = {
new Engine(
classOf[DataSource],