github.com/weaviate/weaviate@v1.24.6/entities/modulecapabilities/texttransformer.go (about)

     1  //                           _       _
     2  // __      _____  __ ___   ___  __ _| |_ ___
     3  // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
     4  //  \ V  V /  __/ (_| |\ V /| | (_| | ||  __/
     5  //   \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
     6  //
     7  //  Copyright © 2016 - 2024 Weaviate B.V. All rights reserved.
     8  //
     9  //  CONTACT: hello@weaviate.io
    10  //
    11  
    12  package modulecapabilities
    13  
    14  // TextTransform performs text transformation operation
    15  type TextTransform interface {
    16  	Transform(in []string) ([]string, error)
    17  }
    18  
    19  // TextTransformers defines all text transformers
    20  // for given arguments
    21  type TextTransformers interface {
    22  	TextTransformers() map[string]TextTransform
    23  }