001 package org.maltparser.parser.guide.decision;
002
003 import org.maltparser.core.exception.MaltChainedException;
004 import org.maltparser.core.feature.FeatureModel;
005 import org.maltparser.core.feature.FeatureVector;
006 import org.maltparser.parser.guide.Model;
007 import org.maltparser.parser.history.action.GuideDecision;
008 /**
009 *
010 * @author Johan Hall
011 * @since 1.1
012 **/
013 public interface DecisionModel extends Model {
014 public void updateFeatureModel() throws MaltChainedException;
015 public void updateCardinality() throws MaltChainedException;
016
017 public void addInstance(GuideDecision decision) throws MaltChainedException;
018 public boolean predict(GuideDecision decision) throws MaltChainedException;
019 public FeatureVector predictExtract(GuideDecision decision) throws MaltChainedException;
020 public FeatureVector extract() throws MaltChainedException;
021 public boolean predictFromKBestList(GuideDecision decision) throws MaltChainedException;
022
023 public FeatureModel getFeatureModel();
024 public int getDecisionIndex();
025 }