public function importFrames()
 {
     try {
         $service = MApp::getService('fnbr20', '', 'data');
         $files = \Maestro\Utils\Mutil::parseFiles('uploadFile');
         $json = file_get_contents($files[0]->getTmpName());
         $service->importFramesFromJSON($json);
         $this->renderPrompt('information', 'OK');
     } catch (EMException $e) {
         $this->renderPrompt('error', $e->getMessage());
     }
 }
 public function importWS()
 {
     try {
         $files = \Maestro\Utils\Mutil::parseFiles('uploadFile');
         $model = new Corpus($this->data->idCorpus);
         if ($this->data->tags == 'N') {
             $result = $model->uploadSentences($this->data, $files[0]);
         } else {
             $result = $model->uploadSentencesPenn($this->data, $files[0]);
         }
         $this->renderPrompt('information', 'OK');
     } catch (EMException $e) {
         $this->renderPrompt('error', $e->getMessage());
     }
 }
 public function importTxt()
 {
     try {
         $files = \Maestro\Utils\Mutil::parseFiles('uploadFile');
         $model = new Corpus();
         $result = $model->uploadCxnSimpleText($this->data, $files[0]);
         $this->renderPrompt('information', 'OK');
     } catch (EMException $e) {
         $this->renderPrompt('error', $e->getMessage());
     }
 }