Class/Object

epic.parser.models

IndexedFeaturizer

Related Docs: object IndexedFeaturizer | package models

Permalink

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]])

    Permalink

Type Members

  1. trait Anchoring extends AnyRef

    Permalink
    Definition Classes
    RefinedFeaturizer
  2. case class Spec extends Anchoring with Product with Serializable

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def anchor(words: IndexedSeq[W]): Spec

    Permalink
    Definition Classes
    IndexedFeaturizerRefinedFeaturizer
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  7. def computeWeight(r: Int, weights: DenseVector[Double]): Double

    Permalink
  8. def decode[V](array: SparseArray[V]): Map[Feature, V]

    Permalink
    Definition Classes
    Encoder
  9. def decode[V](array: Array[V]): Map[Feature, V]

    Permalink
    Definition Classes
    Encoder
  10. def decode(v: Vector[Double], keepZeros: Boolean): Counter[Feature, Double]

    Permalink
    Definition Classes
    Encoder
  11. def encode(c: Tensor[(Feature, Feature), Double]): DenseMatrix[Double]

    Permalink
    Definition Classes
    Encoder
  12. def encode(c: Tensor[Feature, Double], ignoreOutOfIndex: Boolean): Vector[Double]

    Permalink
    Definition Classes
    Encoder
  13. def encodeDense(c: Tensor[Feature, Double], ignoreOutOfIndex: Boolean): DenseVector[Double]

    Permalink
    Definition Classes
    Encoder
  14. def encodeSparse(c: Tensor[Feature, Double], ignoreOutOfIndex: Boolean): SparseVector[Double]

    Permalink
    Definition Classes
    Encoder
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def fillArray[V](default: ⇒ V)(implicit arg0: ClassTag[V]): Array[V]

    Permalink
    Definition Classes
    Encoder
  18. def fillSparseArrayMap[V](default: ⇒ V)(implicit arg0: ClassTag[V], arg1: Zero[V]): SparseArrayMap[V]

    Permalink
    Definition Classes
    Encoder
  19. def forTesting: RefinedFeaturizer[L, W, Feature]

    Permalink
    Definition Classes
    RefinedFeaturizer
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  22. val index: CrossProductIndex[Feature, Feature]

    Permalink
    Definition Classes
    IndexedFeaturizer → Encoder → RefinedFeaturizer
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def labelIndex: Index[L2]

    Permalink
  25. def lock: IndexedFeaturizer[L, L2, W]

    Permalink
    Definition Classes
    IndexedFeaturizerRefinedFeaturizer
  26. def mkArray[V](implicit arg0: ClassTag[V]): Array[V]

    Permalink
    Definition Classes
    Encoder
  27. final def mkDenseVector(default: Double): DenseVector[Double]

    Permalink
    Definition Classes
    Encoder
  28. final def mkMatrix(): DenseMatrix[Double]

    Permalink
    Definition Classes
    Encoder
  29. def mkSparseArray[V](implicit arg0: ClassTag[V], arg1: Zero[V]): SparseArray[V]

    Permalink
    Definition Classes
    Encoder
  30. def mkSparseVector(): SparseVector[Double]

    Permalink
    Definition Classes
    Encoder
  31. final def mkVector(): Vector[Double]

    Permalink
    Definition Classes
    Encoder
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def tabulateArray[V](f: (Feature) ⇒ V)(implicit arg0: ClassTag[V]): Array[V]

    Permalink
    Definition Classes
    Encoder
  37. def tabulateDenseVector(f: (Feature) ⇒ Double): DenseVector[Double]

    Permalink
    Definition Classes
    Encoder
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    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