epic
.
parser
.
models
SpanModelFactory
Related Docs:
object SpanModelFactory
|
package models
case class
SpanModelFactory
(
annotator:
TreeAnnotator
[
AnnotatedLabel
,
String
,
AnnotatedLabel
] =
GenerativeParser.defaultAnnotator()
,
oldWeights:
File
=
null
,
dummyFeats:
Double
=
0.5
,
minFeatCount:
Int
=
1
,
pruneRedundantFeatures:
Boolean
=
false
,
commonWordThreshold:
Int
=
100
,
ngramCountThreshold:
Int
=
5
,
useShape:
Boolean
=
true
,
useRichSpanContext:
Boolean
=
false
,
numSpanContextWords:
Int
=
1
,
useNGrams:
Boolean
=
false
,
maxNGramOrder:
Int
=
2
,
useGrammar:
Boolean
=
true
,
useChildFeats:
Boolean
=
false
,
useFullShape:
Boolean
=
false
,
useSplitShape:
Boolean
=
false
,
posFeaturizer:
Optional
[
WordFeaturizer
[
String
]] =
None
,
spanFeaturizer:
Optional
[
SplitSpanFeaturizer
[
String
]] =
None
,
extraParams:
ExtraParams
=
ExtraParams()
)
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
SpanModelFactory
Serializable
Serializable
Product
Equals
SafeLogging
ParserModelFactory
ParserExtractableModelFactory
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
SpanModelFactory
(
annotator:
TreeAnnotator
[
AnnotatedLabel
,
String
,
AnnotatedLabel
] =
GenerativeParser.defaultAnnotator()
,
oldWeights:
File
=
null
,
dummyFeats:
Double
=
0.5
,
minFeatCount:
Int
=
1
,
pruneRedundantFeatures:
Boolean
=
false
,
commonWordThreshold:
Int
=
100
,
ngramCountThreshold:
Int
=
5
,
useShape:
Boolean
=
true
,
useRichSpanContext:
Boolean
=
false
,
numSpanContextWords:
Int
=
1
,
useNGrams:
Boolean
=
false
,
maxNGramOrder:
Int
=
2
,
useGrammar:
Boolean
=
true
,
useChildFeats:
Boolean
=
false
,
useFullShape:
Boolean
=
false
,
useSplitShape:
Boolean
=
false
,
posFeaturizer:
Optional
[
WordFeaturizer
[
String
]] =
None
,
spanFeaturizer:
Optional
[
SplitSpanFeaturizer
[
String
]] =
None
,
extraParams:
ExtraParams
=
ExtraParams()
)
Type Members
type
MyModel
=
SpanModel
[
AnnotatedLabel
,
AnnotatedLabel
,
String
]
Definition Classes
SpanModelFactory
→
ParserModelFactory
→
ParserExtractableModelFactory
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
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
(
...
)
val
commonWordThreshold
:
Int
val
dummyFeats
:
Double
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
val
extraParams
:
ExtraParams
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]
)
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
SpanModelFactory
→
ParserExtractableModelFactory
val
maxNGramOrder
:
Int
val
minFeatCount
:
Int
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
val
ngramCountThreshold
:
Int
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
val
numSpanContextWords
:
Int
val
oldWeights
:
File
val
posFeaturizer
:
Optional
[
WordFeaturizer
[
String
]]
val
pruneRedundantFeatures
:
Boolean
def
readWeights
(
in:
File
)
:
Counter
[
Feature
,
Double
]
Definition Classes
ParserExtractableModelFactory
val
spanFeaturizer
:
Optional
[
SplitSpanFeaturizer
[
String
]]
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
val
useChildFeats
:
Boolean
val
useFullShape
:
Boolean
val
useGrammar
:
Boolean
val
useNGrams
:
Boolean
val
useRichSpanContext
:
Boolean
val
useShape
:
Boolean
val
useSplitShape
:
Boolean
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