private void Btn_CatchCN_Click_1(object sender, EventArgs e) { try { FormSchedule schedule = new FormSchedule(3); schedule.Show(); schedule.GO("设置脚本参数"); // = 1 string[] strArr = new string[2] { tbx_ExcelData.Text, tbx_Result_CatchCN.Text }; schedule.GO("运行脚本"); // = 2 MyUtils.RunPy(Application.StartupPath + @"\wxz_1_提取中文.py", "", strArr); schedule.GO("信息打印"); // = 3 richTextBox1.Text = MyUtils.Info; schedule.OK(); tbx_SelectSpiltDelWordTxt.Text = tbx_Result_CatchCN.Text; } catch (Exception ex) { MessageBox.Show(ex.ToString(), "错误信息"); } }
private void Button4_Click(object sender, EventArgs e) { try { FormSchedule schedule = new FormSchedule(3); schedule.Show(); schedule.GO("设置脚本参数"); // = 1 string[] strArr = new string[5] { tbx_SelevtSpiltDel.Text, tbx_Result_IDA.Text, numericUpDown_passes.Value.ToString(), numericUpDown_topic.Value.ToString(), numericUpDown_word.Value.ToString() }; schedule.GO("运行脚本"); // = 2 MyUtils.RunPy(Application.StartupPath + @"\wxz_3_应用IDA.py", "", strArr); schedule.GO("信息打印"); // = 3 richTextBox1.Text = MyUtils.Info; schedule.OK(); tbx_IDA.Text = tbx_Result_IDA.Text; } catch (Exception ex) { MessageBox.Show(ex.ToString(), "错误信息"); } }
private void Btn_Run_SplitDelWord_Click(object sender, EventArgs e) { try { FormSchedule schedule = new FormSchedule(3); schedule.Show(); schedule.GO("参数设置"); string[] strArr = new string[3] { tbx_SelectSpiltDelWordTxt.Text, tbx_stopword.Text, tbx_Result_SplitDelWord.Text }; schedule.GO("执行脚本"); MyUtils.RunPy(Application.StartupPath + @"\wxz_2_分词并去除停用词.py", "", strArr); schedule.GO("打印信息"); richTextBox1.Text = MyUtils.Info; schedule.OK(); tbx_SelevtSpiltDel.Text = tbx_Result_SplitDelWord.Text; tbx_SelevtSpiltDel2.Text = tbx_Result_SplitDelWord.Text; tbx_SelevtSpiltDel3.Text = tbx_Result_SplitDelWord.Text; tbx_SelevtSpiltDel4.Text = tbx_Result_SplitDelWord.Text; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void Button13_Click(object sender, EventArgs e) { try { FormSchedule schedule = new FormSchedule(3); schedule.Show(); schedule.GO("设置脚本参数"); // = 1 string[] strArr = new string[1] { tbx_SelevtSpiltDel4.Text }; schedule.GO("运行脚本"); // = 2 MyUtils.RunPy(Application.StartupPath + @"\wxz_7_词频.py", "", strArr); schedule.GO("信息打印"); // = 3 richTextBox1.Text = MyUtils.Info; schedule.OK(); } catch (Exception ex) { MessageBox.Show(ex.ToString(), "错误信息"); } }
private void Btn_Run_docTopic_Click(object sender, EventArgs e) { try { FormSchedule schedule = new FormSchedule(3); schedule.Show(); schedule.GO("设置脚本参数"); // = 1 string[] strArr = new string[2] { tbx_IDA.Text, tbx_Result_docTopic.Text }; schedule.GO("运行脚本"); // = 2 MyUtils.RunPy(Application.StartupPath + @"\wxz_5_主题分配.py", "", strArr); schedule.GO("信息打印"); // = 3 richTextBox1.Text = MyUtils.Info; schedule.OK(); } catch (Exception ex) { MessageBox.Show(ex.ToString(), "错误信息"); } }