epic
.
sentiment
SentimentLossAugmentation
case class
SentimentLossAugmentation
[
W
]
(
trainTrees:
IndexedSeq
[
TreeInstance
[
AnnotatedLabel
,
W
]]
,
topology:
RuleTopology
[
AnnotatedLabel
]
,
lexicon:
Lexicon
[
AnnotatedLabel
,
W
]
,
constraintFactory:
Factory
[
AnnotatedLabel
,
W
]
,
loss: (
Int
,
Int
) ⇒
Double
=
...
,
rootLossScaling:
Double
=
1.0
)
extends
LossAugmentation
[
TreeInstance
[
AnnotatedLabel
,
W
],
UnrefinedGrammarAnchoring
[
AnnotatedLabel
,
W
]] with
Product
with
Serializable
TODO
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
,
LossAugmentation
[
TreeInstance
[
AnnotatedLabel
,
W
],
UnrefinedGrammarAnchoring
[
AnnotatedLabel
,
W
]], (
TreeInstance
[
AnnotatedLabel
,
W
]) ⇒
UnrefinedGrammarAnchoring
[
AnnotatedLabel
,
W
],
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
SentimentLossAugmentation
Serializable
Serializable
Product
Equals
LossAugmentation
Function1
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Instance Constructors
new
SentimentLossAugmentation
(
trainTrees:
IndexedSeq
[
TreeInstance
[
AnnotatedLabel
,
W
]]
,
topology:
RuleTopology
[
AnnotatedLabel
]
,
lexicon:
Lexicon
[
AnnotatedLabel
,
W
]
,
constraintFactory:
Factory
[
AnnotatedLabel
,
W
]
,
loss: (
Int
,
Int
) ⇒
Double
=
...
,
rootLossScaling:
Double
=
1.0
)
Type Members
case class
SentimentLossAnchoring
[
L
,
W
]
(
topology:
RuleTopology
[
L
]
,
lexicon:
Lexicon
[
L
,
W
]
,
words:
IndexedSeq
[
W
]
,
goldLabels:
Map
[
Span
,
Int
]
,
sparsityPattern:
ChartConstraints
[
L
]
)
extends
UnrefinedGrammarAnchoring
[
L
,
W
] with
Product
with
Serializable
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
def
anchor
(
words:
IndexedSeq
[
W
]
)
:
UnrefinedGrammarAnchoring
[
AnnotatedLabel
,
W
]
Returns a
epic.parser.UnrefinedGrammarAnchoring
for this particular sentence.
Returns a
epic.parser.UnrefinedGrammarAnchoring
for this particular sentence.
words
returns
def
andThen
[
A
]
(
g: (
UnrefinedGrammarAnchoring
[
AnnotatedLabel
,
W
]) ⇒
A
)
: (
TreeInstance
[
AnnotatedLabel
,
W
]) ⇒
A
Definition Classes
Function1
Annotations
@unspecialized
()
def
apply
(
datum:
TreeInstance
[
AnnotatedLabel
,
W
]
)
:
UnrefinedGrammarAnchoring
[
AnnotatedLabel
,
W
]
Definition Classes
LossAugmentation
→ Function1
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
compose
[
A
]
(
g: (
A
) ⇒
TreeInstance
[
AnnotatedLabel
,
W
]
)
: (
A
) ⇒
UnrefinedGrammarAnchoring
[
AnnotatedLabel
,
W
]
Definition Classes
Function1
Annotations
@unspecialized
()
val
constraintFactory
:
Factory
[
AnnotatedLabel
,
W
]
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
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
val
lexicon
:
Lexicon
[
AnnotatedLabel
,
W
]
val
loss
: (
Int
,
Int
) ⇒
Double
def
lossAugmentation
(
datum:
TreeInstance
[
AnnotatedLabel
,
W
]
)
:
UnrefinedGrammarAnchoring
[
AnnotatedLabel
,
W
]
Definition Classes
SentimentLossAugmentation
→
LossAugmentation
val
losses
:
Array
[
Array
[
Double
]]
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
projectedLabel
(
l:
AnnotatedLabel
)
:
Int
val
rootLossScaling
:
Double
val
sentimentScores
:
Array
[
Int
]
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
Function1 → AnyRef → Any
val
topology
:
RuleTopology
[
AnnotatedLabel
]
val
trainTrees
:
IndexedSeq
[
TreeInstance
[
AnnotatedLabel
,
W
]]
val
trainingMap
:
Map
[
IndexedSeq
[
W
],
TreeInstance
[
AnnotatedLabel
,
W
]]
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
LossAugmentation
[
TreeInstance
[
AnnotatedLabel
,
W
],
UnrefinedGrammarAnchoring
[
AnnotatedLabel
,
W
]]
Inherited from (
TreeInstance
[
AnnotatedLabel
,
W
]) ⇒
UnrefinedGrammarAnchoring
[
AnnotatedLabel
,
W
]
Inherited from
AnyRef
Inherited from
Any
Ungrouped
TODO