Examples of GuideUserAction


Examples of org.maltparserx.parser.history.action.GuideUserAction

    if (!swapArrayActive) {
      createSwapArray(gold);
      swapArrayActive = true;
    }
    GuideUserAction action = null;
    if (stack.size() < 2) {
      action = updateActionContainers(NonProjective.SHIFT, null);
    } else {
      DependencyNode left = stack.get(stack.size()-2);
      int leftIndex = left.getIndex();
View Full Code Here

Examples of org.maltparserx.parser.history.action.GuideUserAction

    } else {
      for (int i = 0; i < arcLabelActionContainers.length; i++) {
        arcLabelActionContainers[i].setAction(arcLabels.get(arcLabelActionContainers[i].getTable()).shortValue());
      }   
    }
    GuideUserAction oracleAction = history.getEmptyGuideUserAction();
    oracleAction.addAction(actionContainers);
    return oracleAction;
  }
View Full Code Here

Examples of org.maltparserx.parser.history.action.GuideUserAction

    if (diagnostics == true) {
      writeToDiaFile(parseCount + "");
    }
    TransitionSystem transitionSystem = parserState.getTransitionSystem();
    while (!parserState.isTerminalState()) {
      GuideUserAction action = transitionSystem.getDeterministicAction(parserState.getHistory(), currentParserConfiguration);
      if (action == null) {
        action = oracleGuide.predict(goldDependencyGraph, currentParserConfiguration);
        try {
          classifierGuide.addInstance((GuideDecision)action);
        } catch (NullPointerException e) {
View Full Code Here

Examples of org.maltparserx.parser.history.action.GuideUserAction

    ttable.addTransition(RIGHTARC, "RA", true, null);
    ttable.addTransition(LEFTARC, "LA", true, null);
  }
 
  protected void initWithDefaultTransitions(GuideUserHistory history) throws MaltChainedException {
    GuideUserAction currentAction = new ComplexDecisionAction((History)history);
   
    transActionContainer.setAction(SHIFT);
    for (int i = 0; i < arcLabelActionContainers.length; i++) {
      arcLabelActionContainers[i].setAction(-1);
    }
    currentAction.addAction(actionContainers);
  }
View Full Code Here

Examples of org.maltparserx.parser.history.action.GuideUserAction

        } else {
          arcLabelActionContainers[i].setAction(-1);
        }
      }   
    }
    GuideUserAction oracleAction = history.getEmptyGuideUserAction();
    oracleAction.addAction(actionContainers);
    return oracleAction;
  }
View Full Code Here

Examples of org.maltparserx.parser.history.action.GuideUserAction

    ttable.addTransition(RIGHTARC, "RA", true, null);
    ttable.addTransition(LEFTARC, "LA", true, null);
  }
 
  protected void initWithDefaultTransitions(GuideUserHistory history) throws MaltChainedException {
    GuideUserAction currentAction = new ComplexDecisionAction((History)history);
   
    transActionContainer.setAction(SHIFT);
    for (int i = 0; i < arcLabelActionContainers.length; i++) {
      arcLabelActionContainers[i].setAction(-1);
    }
    currentAction.addAction(actionContainers);
  }
View Full Code Here

Examples of org.maltparserx.parser.history.action.GuideUserAction

    ttable.addTransition(RIGHTARC, "RA", true, null);
    ttable.addTransition(LEFTARC, "LA", true, null);
  }
 
  protected void initWithDefaultTransitions(GuideUserHistory history) throws MaltChainedException {
    GuideUserAction currentAction = new ComplexDecisionAction((History)history);
   
    transActionContainer.setAction(SHIFT);
    transActionContainer.setAction(REDUCE);
    for (int i = 0; i < arcLabelActionContainers.length; i++) {
      arcLabelActionContainers[i].setAction(-1);
    }
    currentAction.addAction(actionContainers);
  }
View Full Code Here

Examples of org.maltparserx.parser.history.action.GuideUserAction

    ttable.addTransition(RIGHTARC, "RA", true, null);
    ttable.addTransition(LEFTARC, "LA", true, null);
  }
 
  protected void initWithDefaultTransitions(GuideUserHistory history) throws MaltChainedException {
    GuideUserAction currentAction = new ComplexDecisionAction((History)history);
   
    transActionContainer.setAction(SHIFT);
    transActionContainer.setAction(NOARC);
    for (int i = 0; i < arcLabelActionContainers.length; i++) {
      arcLabelActionContainers[i].setAction(-1);
    }
    currentAction.addAction(actionContainers);
  }
View Full Code Here

Examples of org.maltparserx.parser.history.action.GuideUserAction

    ttable.addTransition(RIGHTARC, "RA", true, null);
    ttable.addTransition(LEFTARC, "LA", true, null);
  }
 
  protected void initWithDefaultTransitions(GuideUserHistory history) throws MaltChainedException {
    GuideUserAction currentAction = new ComplexDecisionAction((History)history);
   
    transActionContainer.setAction(SHIFT);
    transActionContainer.setAction(NOARC);
    for (int i = 0; i < arcLabelActionContainers.length; i++) {
      arcLabelActionContainers[i].setAction(-1);
    }
    currentAction.addAction(actionContainers);
  }
View Full Code Here

Examples of org.maltparserx.parser.history.action.GuideUserAction

    ttable.addTransition(RIGHTARC, "RA", true, null);
    ttable.addTransition(LEFTARC, "LA", true, null);
  }
 
  protected void initWithDefaultTransitions(GuideUserHistory history) throws MaltChainedException {
    GuideUserAction currentAction = new ComplexDecisionAction((History)history);
   
    transActionContainer.setAction(SHIFT);
    //transActionContainer.setAction(SWAP);
    for (int i = 0; i < arcLabelActionContainers.length; i++) {
      arcLabelActionContainers[i].setAction(-1);
    }
    currentAction.addAction(actionContainers);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.