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.parser.guide.Model; 006 import org.maltparser.parser.history.action.GuideDecision; 007 /** 008 * 009 * @author Johan Hall 010 * @since 1.1 011 **/ 012 public interface DecisionModel extends Model { 013 public void update() throws MaltChainedException; 014 public void updateCardinality() throws MaltChainedException; 015 016 public void addInstance(GuideDecision decision) throws MaltChainedException; 017 public boolean predict(GuideDecision decision) throws MaltChainedException; 018 public boolean predictFromKBestList(GuideDecision decision) throws MaltChainedException; 019 020 public FeatureModel getFeatureModel(); 021 public int getDecisionIndex(); 022 }