Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Get a translation model details

Percy Mamedy edited this page Feb 5, 2016 · 2 revisions

You can use the model_id to retrieve details and training status about a specific model

//Get model details
$results = $translator->usingModel('default')->getModelDetails()->collectResults();
/*Outputs
Collection {#160 ▼
  #items: array:11 [▼
    "model_id" => "en-fr"
    "source" => "en"
    "target" => "fr"
    "base_model_id" => ""
    "domain" => "news"
    "customizable" => true
    "default_model" => true
    "owner" => ""
    "status" => "available"
    "name" => ""
    "train_log" => null
  ]
}
*/

If you do not specify the model name, the default model will be used.