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
  • Module: core
  • Methods and properties
  • __init__
  • process
  • invoke
  • NERTask
  • NEROutputType
  • NEROutput
  • __init__
  1. Tasks

Task

Base class for tasks

PreviousTasksNextComprehendIt

Last updated 1 year ago

Subclass of .

Module:

Methods and properties

Main methods and properties


__init__

Arguments:

  • predictor ([Any, Any]): Predictor that will be used in task.

  • preprocess (Optional[], optional): Component executed before predictor.

  • postprocess (Optional[], optional): Component executed after predictor.

  • input_class (Type[]): Class for input validation.

  • output_class (Type[]): Class for output validation.

  • name (Optional[str], optional): Name for identification. If equals to None, class name will be used. Defaults to None.


process

Execute chain of actions

Arguments:

Returns:


invoke

Task main logic. Executes preprocess, than executes predictor, after that executes postprocess and returns result.

Arguments:

Returns:

  • Dict[str, Any]: Result of execution.




NERTask




NEROutputType




NEROutput


__init__

Arguments:



state (): Current data.

component (Optional[]): Component.

evaluator (): Evaluator in context of which executed.

: Result of execution.

input_data (): Validated input data.

evaluator (): Evaluator in context of which executed.

Task that expected to have entities like objects as result. Subclass of Task. Type of Task[, ].

Type variable bounded to .

Base class for output validation of NER tasks. Subclass of .

output (List[]): List of entities.

Component
Evaluator
Evaluator
NEROutput
Executable
Predictor
Component
Component
NEROutputType
core
EntityType
Input
Output
Transformable
Transformable
Input
Input
IOModel