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
Ordering
- Alphabetic
- By Inheritance
Inherited
- IndexedFeaturizer
- Serializable
- Serializable
- Encoder
- RefinedFeaturizer
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new IndexedFeaturizer(index: CrossProductIndex[Feature, Feature], feat: ProductionFeaturizer[L, L2, W], wGen: IndexedWordFeaturizer[W], indexedProjections: GrammarRefinements[L, L2], ruleCache: Array[Array[Int]])
Type Members
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
anchor(words: IndexedSeq[W]): Spec
- Definition Classes
- IndexedFeaturizer → RefinedFeaturizer
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def computeWeight(r: Int, weights: DenseVector[Double]): Double
-
def
decode[V](array: SparseArray[V]): Map[Feature, V]
- Definition Classes
- Encoder
-
def
decode[V](array: Array[V]): Map[Feature, V]
- Definition Classes
- Encoder
-
def
decode(v: Vector[Double], keepZeros: Boolean): Counter[Feature, Double]
- Definition Classes
- Encoder
-
def
encode(c: Tensor[(Feature, Feature), Double]): DenseMatrix[Double]
- Definition Classes
- Encoder
-
def
encode(c: Tensor[Feature, Double], ignoreOutOfIndex: Boolean): Vector[Double]
- Definition Classes
- Encoder
-
def
encodeDense(c: Tensor[Feature, Double], ignoreOutOfIndex: Boolean): DenseVector[Double]
- Definition Classes
- Encoder
-
def
encodeSparse(c: Tensor[Feature, Double], ignoreOutOfIndex: Boolean): SparseVector[Double]
- Definition Classes
- Encoder
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fillArray[V](default: ⇒ V)(implicit arg0: ClassTag[V]): Array[V]
- Definition Classes
- Encoder
-
def
fillSparseArrayMap[V](default: ⇒ V)(implicit arg0: ClassTag[V], arg1: Zero[V]): SparseArrayMap[V]
- Definition Classes
- Encoder
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
forTesting: RefinedFeaturizer[L, W, Feature]
- Definition Classes
- RefinedFeaturizer
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
val
index: CrossProductIndex[Feature, Feature]
- Definition Classes
- IndexedFeaturizer → Encoder → RefinedFeaturizer
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def labelIndex: Index[L2]
-
def
lock: IndexedFeaturizer[L, L2, W]
- Definition Classes
- IndexedFeaturizer → RefinedFeaturizer
-
def
mkArray[V](implicit arg0: ClassTag[V]): Array[V]
- Definition Classes
- Encoder
-
final
def
mkDenseVector(default: Double): DenseVector[Double]
- Definition Classes
- Encoder
-
final
def
mkMatrix(): DenseMatrix[Double]
- Definition Classes
- Encoder
-
def
mkSparseArray[V](implicit arg0: ClassTag[V], arg1: Zero[V]): SparseArray[V]
- Definition Classes
- Encoder
-
def
mkSparseVector(): SparseVector[Double]
- Definition Classes
- Encoder
-
final
def
mkVector(): Vector[Double]
- Definition Classes
- Encoder
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tabulateArray[V](f: (Feature) ⇒ V)(implicit arg0: ClassTag[V]): Array[V]
- Definition Classes
- Encoder
-
def
tabulateDenseVector(f: (Feature) ⇒ Double): DenseVector[Double]
- Definition Classes
- Encoder
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )