Interface NlpConfigOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
NlpConfig, NlpConfig.Builder

public interface NlpConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getLanguage

      String getLanguage()
       Any language supported by spacy (e.g., `en`).
       [Reference](https://spacy.io/usage/models#languages).
       
      string language = 1 [json_name = "language"];
      Returns:
      The language.
    • getLanguageBytes

      com.google.protobuf.ByteString getLanguageBytes()
       Any language supported by spacy (e.g., `en`).
       [Reference](https://spacy.io/usage/models#languages).
       
      string language = 1 [json_name = "language"];
      Returns:
      The bytes for language.
    • getSpacyModel

      String getSpacyModel()
       Name of the trained spacy pipeline (e.g., `en_core_web_lg`).
       If empty, a blank spacy model will be used (e.g., if you only need embeddings and provide custom `embedding_models`.
       [Example: English models](https://spacy.io/models/en).
       
      string spacy_model = 2 [json_name = "spacyModel"];
      Returns:
      The spacyModel.
    • getSpacyModelBytes

      com.google.protobuf.ByteString getSpacyModelBytes()
       Name of the trained spacy pipeline (e.g., `en_core_web_lg`).
       If empty, a blank spacy model will be used (e.g., if you only need embeddings and provide custom `embedding_models`.
       [Example: English models](https://spacy.io/models/en).
       
      string spacy_model = 2 [json_name = "spacyModel"];
      Returns:
      The bytes for spacyModel.
    • getEmbeddingModelsList

      List<EmbeddingModel> getEmbeddingModelsList()
       List of embeddings to use for computing word/sentence vectors.
       If given, these embeddings will **override** the embeddings of the specified `spacy_model`.
       Multiple models are concatenated to each other, increasing the length of the resulting vector.
       
      repeated .arg_services.nlp.v1.EmbeddingModel embedding_models = 3 [json_name = "embeddingModels"];
    • getEmbeddingModels

      EmbeddingModel getEmbeddingModels(int index)
       List of embeddings to use for computing word/sentence vectors.
       If given, these embeddings will **override** the embeddings of the specified `spacy_model`.
       Multiple models are concatenated to each other, increasing the length of the resulting vector.
       
      repeated .arg_services.nlp.v1.EmbeddingModel embedding_models = 3 [json_name = "embeddingModels"];
    • getEmbeddingModelsCount

      int getEmbeddingModelsCount()
       List of embeddings to use for computing word/sentence vectors.
       If given, these embeddings will **override** the embeddings of the specified `spacy_model`.
       Multiple models are concatenated to each other, increasing the length of the resulting vector.
       
      repeated .arg_services.nlp.v1.EmbeddingModel embedding_models = 3 [json_name = "embeddingModels"];
    • getEmbeddingModelsOrBuilderList

      List<? extends EmbeddingModelOrBuilder> getEmbeddingModelsOrBuilderList()
       List of embeddings to use for computing word/sentence vectors.
       If given, these embeddings will **override** the embeddings of the specified `spacy_model`.
       Multiple models are concatenated to each other, increasing the length of the resulting vector.
       
      repeated .arg_services.nlp.v1.EmbeddingModel embedding_models = 3 [json_name = "embeddingModels"];
    • getEmbeddingModelsOrBuilder

      EmbeddingModelOrBuilder getEmbeddingModelsOrBuilder(int index)
       List of embeddings to use for computing word/sentence vectors.
       If given, these embeddings will **override** the embeddings of the specified `spacy_model`.
       Multiple models are concatenated to each other, increasing the length of the resulting vector.
       
      repeated .arg_services.nlp.v1.EmbeddingModel embedding_models = 3 [json_name = "embeddingModels"];
    • getSimilarityMethodValue

      int getSimilarityMethodValue()
       Mathematical function to determine a similarity score given two strings.
       
      .arg_services.nlp.v1.SimilarityMethod similarity_method = 4 [json_name = "similarityMethod"];
      Returns:
      The enum numeric value on the wire for similarityMethod.
    • getSimilarityMethod

      SimilarityMethod getSimilarityMethod()
       Mathematical function to determine a similarity score given two strings.
       
      .arg_services.nlp.v1.SimilarityMethod similarity_method = 4 [json_name = "similarityMethod"];
      Returns:
      The similarityMethod.