NClassifier.Bayesian.BayesianClassifier.CheckCategoriesSupported C# (CSharp) Méthode

CheckCategoriesSupported() private méthode

private CheckCategoriesSupported ( string category ) : void
category string
Résultat 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.");
        }