private void AppendTrainingDoc(string catg, string textToBeAnalyzed)
        {
            /*
             * create new category &save only unique words
             * rewrite if category already exists
             */
            _interactor.AppendCategory(catg, _interactor.GetSplitWords(textToBeAnalyzed));

            _interactor.ComputeTermFrequencyAltogether(catg);

            _view.SetCategoryNames(_interactor.GetCategories().ToArray());

            _interactor.SaveToJsonFile();
        }
コード例 #2
0
 public void OnBtnSaveClicked()
 {
     _interactor.SaveToJsonFile();
     _view.Show("Successfully saved");
 }