TextClassification.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:TextStageProcessor 作者: mhyhre 项目源码 文件源码
def makeClassification(self):
        QApplication.setOverrideCursor(Qt.WaitCursor)
        self.textEdit.setText("")
        self.checkBoxNeedPreprocessing.setEnabled(False)
        need_preprocessing = self.checkBoxNeedPreprocessing.isChecked()
        self.configurations['classification_knn_k'] = self.spinBox_KNN_K.value()

        if self.radioButtonNaiveBayes.isChecked():
            self.calculator.setMethod(ClassificationCalculator.METHOD_NAIVE_BAYES, need_preprocessing)

        if self.radioButtonRocchio.isChecked():
            self.calculator.setMethod(ClassificationCalculator.METHOD_ROCCHIO, need_preprocessing)

        if self.radioButtonKNN.isChecked():
            self.calculator.setMethod(ClassificationCalculator.METHOD_KNN, need_preprocessing)

        if self.radioButtonLLSF.isChecked():
            self.calculator.setMethod(ClassificationCalculator.METHOD_LLSF, need_preprocessing)

        if self.radioButtonID3.isChecked():
            self.calculator.setMethod(ClassificationCalculator.METHOD_ID3, need_preprocessing)

        self.profiler.start()
        self.calculator.start()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号