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
Modifier and TypeMethodDescriptiongetEmbeddingModels(int index) List of embeddings to use for computing word/sentence vectors.intList of embeddings to use for computing word/sentence vectors.List of embeddings to use for computing word/sentence vectors.getEmbeddingModelsOrBuilder(int index) List of embeddings to use for computing word/sentence vectors.List<? extends EmbeddingModelOrBuilder>List of embeddings to use for computing word/sentence vectors.Any language supported by spacy (e.g., `en`).com.google.protobuf.ByteStringAny language supported by spacy (e.g., `en`).Mathematical function to determine a similarity score given two strings.intMathematical function to determine a similarity score given two strings.Name of the trained spacy pipeline (e.g., `en_core_web_lg`).com.google.protobuf.ByteStringName of the trained spacy pipeline (e.g., `en_core_web_lg`).Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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
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
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.
-