BayesClassifier.Classifier.AddCategory C# (CSharp) Method

AddCategory() public method

Adds a new category, replacing an existing one if necessary.
public AddCategory ( string name, int>.Dictionary phrases ) : void
name string The name of the category.
phrases int>.Dictionary The phrases to add to it.
return void
        public void AddCategory(string name, Dictionary<string, int> phrases)
        {
            if (_categories.ContainsKey(name))
                _categories.Remove(name);
            _categories.Add(name, new Category(phrases));
        }
        /// <summary>