1 /* 2 ner_main_window_worker_thread.cpp MindForger thinking notebook 3 4 Copyright (C) 2016-2020 Martin Dvorak <martin.dvorak@mindforger.com> 5 6 This program is free software; you can redistribute it and/or 7 modify it under the terms of the GNU General Public License 8 as published by the Free Software Foundation; either version 2 9 of the License, or (at your option) any later version. 10 11 This program is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 #include "ner_main_window_worker_thread.h" 20 21 namespace m8r { 22 ~NerMainWindowWorkerThread()23NerMainWindowWorkerThread::~NerMainWindowWorkerThread() 24 { 25 delete progressDialog; 26 } 27 process()28void NerMainWindowWorkerThread::process() 29 { 30 mind->recognizePersons(orloj->getOutlineView()->getCurrentOutline(), entityFilter, *result); 31 32 progressDialog->hide(); 33 34 MF_DEBUG("NER initialization and prediction WORKER finished" << endl); 35 emit finished(); 36 } 37 38 } // m8r namespace 39