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

epic.features.HackyLexicalSplitFeaturizer.scala Maven / Gradle / Ivy

The newest version!
package epic.features

import epic.framework.Feature

class HackyLexicalSplitFeaturizer[W]() extends SplitSpanFeaturizer[W] {
  val label = s"RelativeDifference"
  private val emptyArray = Array.empty[Feature]
  
  private val theSplitNeedingAnchoring = new SplitSpanFeatureAnchoring[W] with Serializable {
    def featuresForSplit(begin: Int, split: Int, end: Int): Array[Feature] = {
        emptyArray;
//        Array(DistanceFeature(db.binnedDistance((end-split) - (split-begin)), label))
    }

    def featuresForSpan(begin: Int, end: Int): Array[Feature] = emptyArray
  }

  def anchor(w: IndexedSeq[W]): SplitSpanFeatureAnchoring[W] = {
    theSplitNeedingAnchoring
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy