ModelMetadataDetails¶
-
class
oci.ai_language.models.
ModelMetadataDetails
(**kwargs)¶ Bases:
object
training model details For this release only one model is allowed to be input here. One of the three modelType, ModelId, endpointId should be given other wise error will be thrown from API
Methods
__init__
(**kwargs)Initializes a new ModelMetadataDetails object with values from keyword arguments. Attributes
configuration
Gets the configuration of this ModelMetadataDetails. endpoint_id
Gets the endpoint_id of this ModelMetadataDetails. language_code
Gets the language_code of this ModelMetadataDetails. model_id
Gets the model_id of this ModelMetadataDetails. model_type
Gets the model_type of this ModelMetadataDetails. -
__init__
(**kwargs)¶ Initializes a new ModelMetadataDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - model_type (str) – The value to assign to the model_type property of this ModelMetadataDetails.
- model_id (str) – The value to assign to the model_id property of this ModelMetadataDetails.
- endpoint_id (str) – The value to assign to the endpoint_id property of this ModelMetadataDetails.
- language_code (str) – The value to assign to the language_code property of this ModelMetadataDetails.
- configuration (dict(str, ConfigurationDetails)) – The value to assign to the configuration property of this ModelMetadataDetails.
-
configuration
¶ Gets the configuration of this ModelMetadataDetails. model configuration details For PII : < ENTITY_TYPE , ConfigurationDetails> ex.”ORACLE”:{ “mode” : “MASK”,”maskingCharacter” : “&”,”leaveCharactersUnmasked”: 3,”isUnmaskedFromEnd” : true } For language translation : { “targetLanguageCodes” : ConfigurationDetails}
Returns: The configuration of this ModelMetadataDetails. Return type: dict(str, ConfigurationDetails)
-
endpoint_id
¶ Gets the endpoint_id of this ModelMetadataDetails. Unique identifier endpoint OCID that should be used for inference
Returns: The endpoint_id of this ModelMetadataDetails. Return type: str
-
language_code
¶ Gets the language_code of this ModelMetadataDetails. Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR : Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he : Hebrew
Returns: The language_code of this ModelMetadataDetails. Return type: str
-
model_id
¶ Gets the model_id of this ModelMetadataDetails. Unique identifier model OCID that should be used for inference
Returns: The model_id of this ModelMetadataDetails. Return type: str
-
model_type
¶ Gets the model_type of this ModelMetadataDetails. model type to used for inference allowed values are - LANGUAGE_SENTIMENT_ANALYSIS - LANGUAGE_DETECTION - TEXT_CLASSIFICATION - NAMED_ENTITY_RECOGNITION - KEY_PHRASE_EXTRACTION - LANGUAGE_PII_ENTITIES - LANGUAGE_TRANSLATION
Returns: The model_type of this ModelMetadataDetails. Return type: str
-