Package org.maltparserx.core.feature

Examples of org.maltparserx.core.feature.FeatureVector


    final SingleDecision singleDecision = ((MultipleDecision)decision).getSingleDecision(decisionIndex);
    if (instanceModel == null) {
      initInstanceModel(singleDecision.getTableContainer().getTableContainerName());
    }

    FeatureVector fv = instanceModel.predictExtract(singleDecision);
    if (singleDecision.continueWithNextDecision() && decisionIndex+1 < decision.numberOfDecisions()) {
      if (nextDecisionModel == null) {
        initNextDecisionModel(((MultipleDecision)decision).getSingleDecision(decisionIndex+1), branchedDecisionSymbols);
      }
      nextDecisionModel.predictExtract(decision);
View Full Code Here


  private void setGuide(ClassifierGuide guide) {
    this.guide = guide;
  }
 
  private void initInstanceModel(String subModelName) throws MaltChainedException {
    FeatureVector fv = featureModel.getFeatureVector(branchedDecisionSymbols+"."+subModelName);
    if (fv == null) {
      fv = featureModel.getFeatureVector(subModelName);
    }
    if (fv == null) {
      fv = featureModel.getMainFeatureVector();
View Full Code Here

  public DecisionModel getPrevDecisionModel() {
    return prevDecisionModel;
  }

  private final void initInstanceModel(String subModelName) throws MaltChainedException {
    FeatureVector fv = featureModel.getFeatureVector(branchedDecisionSymbols+"."+subModelName);
    if (fv == null) {
      fv = featureModel.getFeatureVector(subModelName);
    }
    if (fv == null) {
      fv = featureModel.getMainFeatureVector();
View Full Code Here

    featureModel.update();
    final SingleDecision singleDecision = ((MultipleDecision)decision).getSingleDecision(decisionIndex);
    if (instanceModel == null) {
      initInstanceModel(singleDecision.getTableContainer().getTableContainerName());
    }
    FeatureVector fv = instanceModel.predictExtract(singleDecision);
    if (decisionIndex+1 < decision.numberOfDecisions()) {
      if (singleDecision.continueWithNextDecision()) {
        if (children == null) {
          children = new HashMap<Integer,DecisionModel>();
        }
View Full Code Here

      throw new GuideException("The decision model class '"+decisionModelClass.getName()+"' cannot be initialized. ", e);
    }
  }
 
  private void initInstanceModel(String subModelName) throws MaltChainedException {
    FeatureVector fv = featureModel.getFeatureVector(branchedDecisionSymbols+"."+subModelName);
    if (fv == null) {
      fv = featureModel.getFeatureVector(subModelName);
    }
    if (fv == null) {
      fv = featureModel.getMainFeatureVector();
View Full Code Here

TOP

Related Classes of org.maltparserx.core.feature.FeatureVector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.