Packages

c

com.johnsnowlabs.nlp.annotators.ner

Gliner2ExtractionResult

class Gliner2ExtractionResult extends AnyRef

Complete extraction result for one sample.

Contains all extracted information across all task types.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Gliner2ExtractionResult
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Gliner2ExtractionResult()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addClassification(taskName: String, label: String, score: Float): Unit
  5. def addEntities(label: String, spans: Array[Gliner2SpanResult]): Unit
  6. def addRelations(label: String, spans: Array[Gliner2RelationResult]): Unit
  7. def addStructure(name: String, value: Array[Map[String, String]]): Unit
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. val classifications: Map[String, Array[Gliner2Classification]]
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  11. val entities: Map[String, Array[Gliner2SpanResult]]
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def isEmpty: Boolean

    Check if result is empty (no extractions).

  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. val relations: Map[String, Array[Gliner2RelationResult]]
  23. val structures: Map[String, Array[Map[String, String]]]

    Extracted structure instances per structure name.

    Extracted structure instances per structure name.

    Each instance is a Map from field name to a JSON-encoded value string, compatible with Spark's MapType(StringType, StringType). Field values encode:

    • Span list: [{"text":"...","confidence":0.9,"start":0,"end":5},...]
    • Single span: {"text":"...","confidence":0.9,"start":0,"end":5}
    • Classification list: [{"text":"...","confidence":0.9},...]
    • Single classification: {"text":"...","confidence":0.9}

    Fields with no match are omitted from the map.

  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped