NClassifier.Bayesian.BayesianClassifier.CheckCategoriesSupported C# (CSharp) Method

CheckCategoriesSupported() private method

private CheckCategoriesSupported ( string category ) : void
category string
return void
        private void CheckCategoriesSupported(string category)
        {
            // if the category is not the default
            if (ICategorizedClassifierConstants.DEFAULT_CATEGORY != category)
                if (!(_wordsData is ICategorizedWordsDataSource))
                    throw new ArgumentException("Word Data Source does not support non-default categories.");
        }