예제 #1
0
 /// <summary>
 /// Deserializes the JSON object to a new instance of this class.
 /// </summary>
 /// <param name="httpClient">the HTTP client</param>
 /// <param name="model">the JSON object</param>
 /// <returns>a new instance</returns>
 public new static EmbeddingModel Deserialize(IClarifaiHttpClient httpClient, dynamic model)
 {
     return(new EmbeddingModel(
                httpClient,
                (string)model.id,
                name: (string)model.name,
                createdAt: (DateTime)model.created_at,
                appID: (string)model.app_id,
                outputInfo: EmbeddingOutputInfo.Deserialize(model.output_info),
                modelVersion: Models.ModelVersion.Deserialize(model.model_version)));
 }
예제 #2
0
 /// <summary>
 /// Ctor.
 /// </summary>
 /// <param name="httpClient">the HTTP client</param>
 /// <param name="modelID">the model ID</param>
 /// <param name="name">the model name</param>
 /// <param name="createdAt">date & time of model creation</param>
 /// <param name="appID">the application ID</param>
 /// <param name="modelVersion">the model version</param>
 /// <param name="outputInfo">the output info</param>
 public EmbeddingModel(IClarifaiHttpClient httpClient, string modelID, string name = null,
                       DateTime?createdAt             = null, string appID = null, ModelVersion modelVersion = null,
                       EmbeddingOutputInfo outputInfo = null)
     : base(httpClient, modelID, name, createdAt, appID, modelVersion, outputInfo)
 {
 }