Package org.maltparserx.parser.transition

Examples of org.maltparserx.parser.transition.TransitionTable


        if (!getTableHandlers().containsKey("T")) {
          getTableHandlers().put("T", getTransitionTableHandler());
        }
        if (decisionElements[i].substring(index+1).equals("TRANS")) {
          if (nTrans == 0) {
            TransitionTable ttable = (TransitionTable)getTransitionTableHandler().addSymbolTable("TRANS");
            addAvailableTransitionToTable(ttable);
          } else {
            throw new ParsingException("Illegal decision settings '"+decisionSettings+"'");
          }
          nTrans++;
View Full Code Here


  }

  public String getActionString(GuideUserAction action) throws MaltChainedException {
    final StringBuilder sb = new StringBuilder();
    action.getAction(actionContainers);
    TransitionTable ttable = (TransitionTable)getTransitionTableHandler().getSymbolTable("TRANS");
    sb.append(ttable.getSymbolCodeToString(transActionContainer.getActionCode()));
    for (int i = 0; i < arcLabelActionContainers.length; i++) {
      if (arcLabelActionContainers[i].getActionCode() != -1) {
        sb.append("+");
        sb.append(arcLabelActionContainers[i].getTable().getSymbolCodeToString(arcLabelActionContainers[i].getActionCode()));
      }
View Full Code Here

TOP

Related Classes of org.maltparserx.parser.transition.TransitionTable

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.