epic
.
parser
ProductionFeaturizer
Related Doc:
package parser
class
ProductionFeaturizer
[
L
,
L2
,
W
]
extends
RefinedFeaturizer
[
L
,
W
,
Feature
] with
Serializable
A simple Featurizer that just counts lexical and rule productions that are used.
Annotations
@SerialVersionUID
()
Linear Supertypes
Serializable
,
Serializable
,
RefinedFeaturizer
[
L
,
W
,
Feature
],
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
ProductionFeaturizer
Serializable
Serializable
RefinedFeaturizer
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
ProductionFeaturizer
(
topology:
RuleTopology
[
L
]
,
refinements:
GrammarRefinements
[
L
,
L2
]
,
lGen: (
L2
) ⇒
Seq
[
Feature
] =
...
,
rGen: (
Rule
[
L2
]) ⇒
Seq
[
Feature
] =
(x: Rule[L2]) => Seq(x)
,
filterRedundantFeatures:
Boolean
=
false
)
Type Members
trait
Anchoring
extends
AnyRef
Definition Classes
RefinedFeaturizer
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
(
w:
IndexedSeq
[
W
]
)
:
Anchoring
{ val words: IndexedSeq[W] }
Definition Classes
ProductionFeaturizer
→
RefinedFeaturizer
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
featuresFor
(
label:
L2
)
:
Array
[
Int
]
def
featuresFor
(
rule:
Rule
[
L2
]
)
:
Array
[
Int
]
def
featuresForLabel
(
l:
Int
)
:
Array
[
Int
]
def
featuresForRule
(
r:
Int
)
:
Array
[
Int
]
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
def
index
:
Index
[
Feature
]
Definition Classes
ProductionFeaturizer
→
RefinedFeaturizer
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
lock
:
RefinedFeaturizer
[
L
,
W
,
Feature
]
Definition Classes
ProductionFeaturizer
→
RefinedFeaturizer
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
toString
()
:
String
Definition Classes
AnyRef → Any
val
topology
:
RuleTopology
[
L
]
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
(
...
)
Inherited from
Serializable
Inherited from
Serializable
Inherited from
RefinedFeaturizer
[
L
,
W
,
Feature
]
Inherited from
AnyRef
Inherited from
Any
Ungrouped
A simple Featurizer that just counts lexical and rule productions that are used.