epic.parser.models

IndexedFeaturizer

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( 2 )
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
Learn more about member selection
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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def anchor(words: IndexedSeq[W]): Spec

    Definition Classes
    IndexedFeaturizerRefinedFeaturizer
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    Encoder
  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def forTesting: RefinedFeaturizer[L, W, Feature]

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

    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. val index: CrossProductIndex[Feature, Feature]

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

    Definition Classes
    Any
  27. def labelIndex: Index[L2]

  28. def lock: IndexedFeaturizer[L, L2, W]

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  38. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Definition Classes
    Encoder
  41. def toString(): String

    Definition Classes
    AnyRef → Any
  42. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Encoder[Feature]

Inherited from RefinedFeaturizer[L, W, Feature]

Inherited from AnyRef

Inherited from Any

Ungrouped