private void UniversalProcessButton_Click(object sender, EventArgs e) { IEmbeddingModel model; DoWorkEventHandler handler; if (this.Ip2VecEmbeddingButton.Checked) { model = new Ip2VecModel(); handler = this.MainController.VectorizeController.Ip2VecEmbeddingWorker; } else if (this.NeVeEmbeddingButton.Checked) { model = new NeVeModel(); handler = this.MainController.VectorizeController.NeVeEmbeddingWorker; } else { model = new StringEmbeddingModel(); handler = null; } var times = Convert.ToInt32(this.RepetitionNumericCount.Value); this.MainController.BeginEasyAccess(times, model, handler); }
private void DBScanButton_Click(object sender, EventArgs e) { IEmbeddingModel model; if (this.Ip2VecEmbeddingButton.Checked) { model = new Ip2VecModel(); } else if (this.NeVeEmbeddingButton.Checked) { model = new NeVeModel(); } else { model = new StringEmbeddingModel(); } MainController.BeginDBScan(model); }