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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EmbeddingModelgetEmbeddingModels(int index)List of embeddings to use for computing word/sentence vectors.intgetEmbeddingModelsCount()List of embeddings to use for computing word/sentence vectors.java.util.List<EmbeddingModel>getEmbeddingModelsList()List of embeddings to use for computing word/sentence vectors.EmbeddingModelOrBuildergetEmbeddingModelsOrBuilder(int index)List of embeddings to use for computing word/sentence vectors.java.util.List<? extends EmbeddingModelOrBuilder>getEmbeddingModelsOrBuilderList()List of embeddings to use for computing word/sentence vectors.java.lang.StringgetLanguage()Any language supported by spacy (e.g., `en`).com.google.protobuf.ByteStringgetLanguageBytes()Any language supported by spacy (e.g., `en`).SimilarityMethodgetSimilarityMethod()Mathematical function to determine a similarity score given two strings.intgetSimilarityMethodValue()Mathematical function to determine a similarity score given two strings.java.lang.StringgetSpacyModel()Name of the trained spacy pipeline (e.g., `en_core_web_lg`).com.google.protobuf.ByteStringgetSpacyModelBytes()Name of the trained spacy pipeline (e.g., `en_core_web_lg`).-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getLanguage
java.lang.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
java.lang.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
java.util.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
java.util.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.
-
-