Knowledgator UTCA
KnowledgatorGitHubDiscord
  • Welcome to UTCA documentation!
  • Quickstart
  • Concepts
    • Components
    • Types of components
    • ExecutionSchema
    • Context
    • Scopes
  • Development and Contribution
    • Contribution
    • Future relises
  • Framework structure
  • Core
    • Component
    • BaseExecutor
    • Action
    • Executable
    • Evaluator
    • Memory management
    • Schemas
    • Exceptions
  • Structural components
    • ExecutionSchema
    • Switch
    • ForEach
    • Filter
    • While
    • Condition
    • BREAK
    • Log
  • Base Actions
    • Flush
    • AddData
    • RenameAttribute
    • RenameAttributeQuery
    • SetValue
    • UnpackValue
    • NestToKey
    • ExecuteFunction
  • Predictors
    • Predictor
    • Transformers predictors
    • Transformers schemas
    • TokenSearcherPredictor
    • ComprehendItPredictor
    • GLiNERPredictor
    • OpenAIChatGPTPredictor
    • OpenAIWhisperPredictor
  • Tasks
    • Task
    • ComprehendIt
    • TokenSearcherTextCleaner
    • TokenSearcherNER
    • TokenSearcherQandA
    • TokenSearcherRelationExtraction
    • GLiNER
    • GLiNERRelationExtraction
    • GLiNERQandA
    • OpenAIChat
    • WhisperSpeechToText
    • TransformersTextToSpeech
    • TransformersChartsAndPlotsAnalysis
    • TransformersDocumentQandA
    • TransformersImageClassification
    • TransformersVisualQandA
    • TransformersObjectDetection
    • TransformersTextEmbedding
    • TransformersEntityLinking
    • TransformersTokenClassifier
    • TransformersTextSummarization
    • TransformersTextualQandA
    • TransformersTextClassification
    • TransformersChat
    • Objects
    • Chat tasks utilities
    • Relation extraction tasks utilities
  • Executable Schemas
    • SemanticSearchSchema
    • Web2Meaning
    • RequestsHTML
  • Datasources
    • Audio
    • DB
      • SQL
      • Neo4j
      • Chroma
      • Qdrant
    • Google Documents
    • Google Sheets
    • Image
    • Index
    • JSON
    • PDF
    • Plain text
    • Video
  • Conditions
    • RePattern
    • SemanticCondition
  • APIs
    • GoogleCloudClient
  • Integrations
    • Google Cloud
  • Examples
    • Basic image classification
    • Text to speech
    • PDF document processing
Powered by GitBook
On this page
  • RelationExtractionInput
  • __init__
  • RelationExtractionOutput
  • __init__
  • Relation
  • __init__
  • Triplet
  • __init__
  1. Tasks

Relation extraction tasks utilities

PreviousChat tasks utilitiesNextExecutable Schemas

Last updated 1 year ago



RelationExtractionInput

Subclass of .


__init__

Arguments:

  • text (str): Text to process.

  • relations (List[]): Relations parameters.

  • entities (List[]): Entities to use.




RelationExtractionOutput

Subclass of .


__init__

Arguments:




Relation


__init__

Arguments:

  • relation (str): Relation label.

  • pairs_filter (Optional[List[Tuple[str, str]]], optional): Expected pairs for relation. If equals to None all pairs will be returned. Defaults to None.

  • distance_threshold (int, optional): Distance threshold. It specifies the max distance between spans in the text (i.e., the end of the span that is closer to the start of the text and the start of the next one). Defaults to -1 (no distance threshold).




Triplet


__init__

Arguments:

  • relation (str): Relation label.

  • score (float): Relation score.



output (List[]): Relations triplets.

source (): Source entity in the relation.

target (): Target entity in the relation.

Triplet
Relation
ClassifiedEntity
ClassifiedEntity
ClassifiedEntity
IOModel
IOModel