All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sansa_stack.ml.spark.utils.NodeIndexer.scala Maven / Gradle / Ivy

The newest version!
package net.sansa_stack.ml.spark.utils

import org.apache.jena.graph.Node
import org.apache.spark.sql.DataFrame

abstract class NodeIndexer {
  protected var vocabulary: Map[Node, Int]

  val inputCols: Array[String] = Array("s", "p", "o")



  def fit(df: DataFrame): NodeIndexerModel = {

    // val allNodes = df.select(inputCols)
    // println(allNodes)

    new NodeIndexerModel
  }
}

class NodeIndexerModel {
  def transform(df: DataFrame): DataFrame = {
    df
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy