class StructureBuilder extends AnyRef
Builder for structured data schemas (JSON structures).
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- StructureBuilder
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
StructureBuilder(schema: Gliner2SchemaBuilder, parent: String)
- schema
The parent Schema instance
- parent
The name of the structure being built
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 build(): Gliner2Schema
- def classification(task: String, labels: List[String], multiLabel: Boolean = false, clsThreshold: Double = 0.5, extraParams: Map[String, Any] = Map.empty): Gliner2SchemaBuilder
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def entities(entityType: String): Gliner2SchemaBuilder
- def entities(entityTypes: List[String]): Gliner2SchemaBuilder
- def entities(entityTypes: Map[String, String], dtype: String = "list", threshold: Option[Double] = None): Gliner2SchemaBuilder
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
-
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()
- def relations(relationTypes: Map[String, String], threshold: Option[Double]): Gliner2SchemaBuilder
- def relations(relationTypes: Map[String, String]): Gliner2SchemaBuilder
- def relations(relationTypes: List[String], threshold: Option[Double]): Gliner2SchemaBuilder
- def relations(relationTypes: List[String]): Gliner2SchemaBuilder
- def structure(name: String): StructureBuilder
-
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()