class IndexedFeaturizer[L, L2, W] extends RefinedFeaturizer[L, W, Feature] with Encoder[Feature] with Serializable

epic.parser.models.IndexedFeaturizer are featurizers for "normal" unanchored grammars. They define an indexed encoding of the features for each rule and label using indexed rule and indexed labels. Handles epic.parser.ProductionFeaturizer instances

Self Type
IndexedFeaturizer[L, L2, W]
Annotations
@SerialVersionUID()
Linear Supertypes
Serializable, Serializable, Encoder[Feature], RefinedFeaturizer[L, W, Feature], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IndexedFeaturizer
  2. Serializable
  3. Serializable
  4. Encoder
  5. RefinedFeaturizer
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IndexedFeaturizer(index: CrossProductIndex[Feature, Feature], feat: ProductionFeaturizer[L, L2, W], wGen: IndexedWordFeaturizer[W], indexedProjections: GrammarRefinements[L, L2], ruleCache: Array[Array[Int]])

Type Members

  1. trait Anchoring extends AnyRef
    Definition Classes
    RefinedFeaturizer
  2. case class Spec extends Anchoring with Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def anchor(words: IndexedSeq[W]): Spec
    Definition Classes
    IndexedFeaturizerRefinedFeaturizer
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  7. def computeWeight(r: Int, weights: DenseVector[Double]): Double
  8. def decode[V](array: SparseArray[V]): Map[Feature, V]
    Definition Classes
    Encoder
  9. def decode[V](array: Array[V]): Map[Feature, V]
    Definition Classes
    Encoder
  10. def decode(v: Vector[Double], keepZeros: Boolean): Counter[Feature, Double]
    Definition Classes
    Encoder
  11. def encode(c: Tensor[(Feature, Feature), Double]): DenseMatrix[Double]
    Definition Classes
    Encoder
  12. def encode(c: Tensor[Feature, Double], ignoreOutOfIndex: Boolean): Vector[Double]
    Definition Classes
    Encoder
  13. def encodeDense(c: Tensor[Feature, Double], ignoreOutOfIndex: Boolean): DenseVector[Double]
    Definition Classes
    Encoder
  14. def encodeSparse(c: Tensor[Feature, Double], ignoreOutOfIndex: Boolean): SparseVector[Double]
    Definition Classes
    Encoder
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  17. def fillArray[V](default: ⇒ V)(implicit arg0: ClassTag[V]): Array[V]
    Definition Classes
    Encoder
  18. def fillSparseArrayMap[V](default: ⇒ V)(implicit arg0: ClassTag[V], arg1: Zero[V]): SparseArrayMap[V]
    Definition Classes
    Encoder
  19. def forTesting: RefinedFeaturizer[L, W, Feature]
    Definition Classes
    RefinedFeaturizer
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. val index: CrossProductIndex[Feature, Feature]
    Definition Classes
    IndexedFeaturizer → Encoder → RefinedFeaturizer
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def labelIndex: Index[L2]
  25. def lock: IndexedFeaturizer[L, L2, W]
    Definition Classes
    IndexedFeaturizerRefinedFeaturizer
  26. def mkArray[V](implicit arg0: ClassTag[V]): Array[V]
    Definition Classes
    Encoder
  27. final def mkDenseVector(default: Double): DenseVector[Double]
    Definition Classes
    Encoder
  28. final def mkMatrix(): DenseMatrix[Double]
    Definition Classes
    Encoder
  29. def mkSparseArray[V](implicit arg0: ClassTag[V], arg1: Zero[V]): SparseArray[V]
    Definition Classes
    Encoder
  30. def mkSparseVector(): SparseVector[Double]
    Definition Classes
    Encoder
  31. final def mkVector(): Vector[Double]
    Definition Classes
    Encoder
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  35. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  36. def tabulateArray[V](f: (Feature) ⇒ V)(implicit arg0: ClassTag[V]): Array[V]
    Definition Classes
    Encoder
  37. def tabulateDenseVector(f: (Feature) ⇒ Double): DenseVector[Double]
    Definition Classes
    Encoder
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Encoder[Feature]

Inherited from RefinedFeaturizer[L, W, Feature]

Inherited from AnyRef

Inherited from Any

Ungrouped