Packages

c

com.johnsnowlabs.nlp.annotators.ner

StructureBuilder

class StructureBuilder extends AnyRef

Builder for structured data schemas (JSON structures).

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

Instance Constructors

  1. new StructureBuilder(schema: Gliner2SchemaBuilder, parent: String)

    schema

    The parent Schema instance

    parent

    The name of the structure being built

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def build(): Gliner2Schema
  6. def classification(task: String, labels: List[String], multiLabel: Boolean = false, clsThreshold: Double = 0.5, extraParams: Map[String, Any] = Map.empty): Gliner2SchemaBuilder
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def entities(entityType: String): Gliner2SchemaBuilder
  9. def entities(entityTypes: List[String]): Gliner2SchemaBuilder
  10. def entities(entityTypes: Map[String, String], dtype: String = "list", threshold: Option[Double] = None): Gliner2SchemaBuilder
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def field(name: String, dtype: String = "list", choices: Option[Seq[String]] = None, description: Option[String] = None, threshold: Option[Double] = None, validators: Option[Seq[RegexValidator]] = None): StructureBuilder

    Add a field to the structure.

    Add a field to the structure.

    name

    Field name

    dtype

    Data type: "str" or "list"

    choices

    Optional sequence of valid choices

    description

    Optional field description

    threshold

    Optional confidence threshold

    validators

    Optional sequence of RegexValidators

    returns

    This builder for chaining

  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. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def relations(relationTypes: Map[String, String], threshold: Option[Double]): Gliner2SchemaBuilder
  22. def relations(relationTypes: Map[String, String]): Gliner2SchemaBuilder
  23. def relations(relationTypes: List[String], threshold: Option[Double]): Gliner2SchemaBuilder
  24. def relations(relationTypes: List[String]): Gliner2SchemaBuilder
  25. def structure(name: String): StructureBuilder
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped