github.com/weaviate/weaviate@v1.24.6/modules/ner-transformers/ent/ner_result.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 ent
    13  
    14  type TokenResult struct {
    15  	Property      string
    16  	Word          string
    17  	Entity        string
    18  	Certainty     float64
    19  	Distance      float64
    20  	StartPosition int
    21  	EndPosition   int
    22  }
    23  
    24  type NerResult struct {
    25  	Tokens []TokenResult
    26  }