epic
.
parser
.
models
ProductParserModelFactory
case class
ProductParserModelFactory
(
annotator:
TreeAnnotator
[
AnnotatedLabel
,
String
,
AnnotatedLabel
] =
...
,
substates:
File
=
null
,
numStates:
Int
=
2
,
numModels:
Int
=
2
,
oldWeights:
File
=
null
,
splitFactor:
Int
=
1
)
extends
ParserModelFactory
[
AnnotatedLabel
,
String
] with
SafeLogging
with
Product
with
Serializable
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
,
SafeLogging
,
ParserModelFactory
[
AnnotatedLabel
,
String
],
ParserExtractableModelFactory
[
AnnotatedLabel
,
String
],
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
ProductParserModelFactory
Serializable
Serializable
Product
Equals
SafeLogging
ParserModelFactory
ParserExtractableModelFactory
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Instance Constructors
new
ProductParserModelFactory
(
annotator:
TreeAnnotator
[
AnnotatedLabel
,
String
,
AnnotatedLabel
] =
...
,
substates:
File
=
null
,
numStates:
Int
=
2
,
numModels:
Int
=
2
,
oldWeights:
File
=
null
,
splitFactor:
Int
=
1
)
Type Members
type
MyModel
=
LatentParserModel
[
AnnotatedLabel
, (
AnnotatedLabel
,
Seq
[
Int
]),
String
]
Definition Classes
ProductParserModelFactory
→
ParserModelFactory
→
ParserExtractableModelFactory
Value Members
final
def
!=
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
val
annotator
:
TreeAnnotator
[
AnnotatedLabel
,
String
,
AnnotatedLabel
]
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
extractBasicCounts
[
L
,
W
]
(
trees:
IndexedSeq
[
TreeInstance
[
L
,
W
]]
)
: (
Counter2
[
L
,
W
,
Double
],
Counter2
[
L
,
BinaryRule
[
L
],
Double
],
Counter2
[
L
,
UnaryRule
[
L
],
Double
])
Attributes
protected
Definition Classes
ParserExtractableModelFactory
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
def
genSplits
(
numModels:
Int
,
numStates:
Int
)
:
Seq
[
IndexedSeq
[
Int
]]
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
logger
:
Logger
Definition Classes
SafeLogging
def
make
(
trainTrees:
IndexedSeq
[
TreeInstance
[
AnnotatedLabel
,
String
]]
,
topology:
RuleTopology
[
AnnotatedLabel
]
,
lexicon:
Lexicon
[
AnnotatedLabel
,
String
]
,
constrainer:
Factory
[
AnnotatedLabel
,
String
]
)
:
MyModel
Definition Classes
ProductParserModelFactory
→
ParserExtractableModelFactory
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
val
numModels
:
Int
val
numStates
:
Int
val
oldWeights
:
File
def
readWeights
(
in:
File
)
:
Counter
[
Feature
,
Double
]
Definition Classes
ParserExtractableModelFactory
def
split
(
x:
AnnotatedLabel
,
counts:
Map
[
AnnotatedLabel
,
Int
]
)
:
Seq
[(
AnnotatedLabel
,
Seq
[
Int
])]
val
splitFactor
:
Int
def
splitRule
[
L
,
L2
]
(
r:
Rule
[
L
]
,
split: (
L
) ⇒
Seq
[
L2
]
)
:
Seq
[
Rule
[
L2
]]
val
substates
:
File
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
unsplit
(
x: (
AnnotatedLabel
,
Seq
[
Int
])
)
:
AnnotatedLabel
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
Product
Inherited from
Equals
Inherited from
SafeLogging
Inherited from
ParserModelFactory
[
AnnotatedLabel
,
String
]
Inherited from
ParserExtractableModelFactory
[
AnnotatedLabel
,
String
]
Inherited from
AnyRef
Inherited from
Any
Ungrouped