Example #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void noMoreInstances() throws org.maltparser.core.exception.MaltChainedException
        public virtual void noMoreInstances()
        {
            if (decisionModel != null)
            {
                decisionModel.noMoreInstances(featureModel2);
            }
            else
            {
                configuration.logDebugMessage("The guide cannot create any models because there is no decision model. ");
            }
        }
Example #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void noMoreInstances(org.maltparser.core.feature.FeatureModel featureModel) throws org.maltparser.core.exception.MaltChainedException
        public virtual void noMoreInstances(FeatureModel featureModel)
        {
            if (guide.GuideMode == ClassifierGuide_GuideMode.CLASSIFY)
            {
                throw new GuideException("The decision model could not create it's model. ");
            }
            if (instanceModel != null)
            {
                instanceModel.noMoreInstances(featureModel);
                instanceModel.train();
            }
            if (nextDecisionModel != null)
            {
                nextDecisionModel.noMoreInstances(featureModel);
            }
        }