object SpanF1Engine
Backs NER and word segmentation: standard conlleval-style entity/segment-level
precision/recall/F1, computed as a distributed map (each row to local TP/FP/FN counts) then
reduce, rather than collecting tag sequences to the driver.
- Alphabetic
- By Inheritance
- SpanF1Engine
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
evaluate(task: BenchmarkTask, rows: RDD[(Seq[String], Seq[String])]): AccuracyReport
- rows
(predictedTags, goldTags) per document/sentence, BIO/IOB2-tagged, same length within a row
-
def
evaluateBoundaries(task: BenchmarkTask, rows: RDD[(Set[(Int, Int)], Set[(Int, Int)])]): AccuracyReport
For tasks where spans are already known boundaries rather than something to derive from BIO tags (e.g.
For tasks where spans are already known boundaries rather than something to derive from BIO tags (e.g. word segmentation, where each output token's (begin, end) offset is already a segment). All spans are scored as a single implicit type.
- rows
(predictedBoundaries, goldBoundaries) per document/sentence, each a set of (begin, end) offsets
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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( ... ) @native()