Examples of printTree()


Examples of com.google.gerrit.server.util.TreeFormatter.printTree()

        sortedNodes.add(key);
      }
    }

    final TreeFormatter treeFormatter = new TreeFormatter(stdout);
    treeFormatter.printTree(sortedNodes);
    stdout.flush();
  }

  private List<Ref> getBranchRefs(Project.NameKey projectName,
      ProjectControl projectControl) {
View Full Code Here

Examples of edu.neu.ccs.task.Plan.printTree()

 
  private void dumpPlan() {
    StringWriter sw = new StringWriter();
    Plan plan = agent.getTop();
    if (plan != null)
      plan.printTree(new PrintWriter(sw), true, new Decorator() {
        public String decorate(Object o) {
          return (o == agent.getFocus()) ? " <-focus" : "";
        }
      });
   
View Full Code Here

Examples of edu.neu.ccs.task.Plan.printTree()

  public void _status(String ignored) {
    Plan top = agent.getTop();
    if (top == null)
      out.println("No current task");
    else
      top.printTree(out, verbose, new Decorator() {
        public String decorate(Object o) {
          return (o == agent.getFocus()) ? " <-focus" : "";
        }
      });
  }
View Full Code Here

Examples of edu.stanford.nlp.trees.TreePrint.printTree()

        return parseSucceeded;
      }
      if (op.testOptions.verbose) {
        pwOut.println("PParser output");
        // getBestPCFGParse(false).pennPrint(pwOut); // with scores on nodes
        treePrint.printTree(getBestPCFGParse(false), pwOut); // without scores on nodes
      }
    }
    if (Thread.interrupted()) {
      throw new RuntimeInterruptedException();
    }
View Full Code Here

Examples of edu.stanford.nlp.trees.TreePrint.printTree()

      }
      // cdm nov 2006: should move these printing bits to the main printing section,
      // so don't calculate the best parse twice!
      if (op.testOptions.verbose) {
        pwOut.println("DParser output");
        treePrint.printTree(dparser.getBestParse(), pwOut);
      }
    }
    if (Thread.interrupted()) {
      throw new RuntimeInterruptedException();
    }
View Full Code Here

Examples of edu.stanford.nlp.trees.TreePrint.printTree()

      if (!pparser.parse(lr)) {
        return parseSucceeded;
      }
      if (op.testOptions.verbose) {
        pwOut.println("PParser output");
        treePrint.printTree(getBestPCFGParse(false), pwOut);
      }
    }
    parseSucceeded = true;
    return true;
  }
View Full Code Here

Examples of sicel.compiler.parser.ASTNode.printTree()

    {
      e.printStackTrace();
      return;
    }
   
    rootNode.printTree();
  }
 
  @Override
  public final ASTNode parse( File file )
  {
View Full Code Here

Examples of simplenlg.framework.NLGElement.printTree()

      System.out.println(element.printTree(null));
    }
    NLGElement postSyntax = this.syntax.realise(element);
    if (this.debug) {
      System.out.println("\nPOST-SYNTAX TREE\n"); //$NON-NLS-1$
      System.out.println(postSyntax.printTree(null));
    }
    NLGElement postMorphology = this.morphology.realise(postSyntax);
    if (this.debug) {
      System.out.println("\nPOST-MORPHOLOGY TREE\n"); //$NON-NLS-1$
      System.out.println(postMorphology.printTree(null));
View Full Code Here

Examples of simplenlg.framework.NLGElement.printTree()

      System.out.println(postSyntax.printTree(null));
    }
    NLGElement postMorphology = this.morphology.realise(postSyntax);
    if (this.debug) {
      System.out.println("\nPOST-MORPHOLOGY TREE\n"); //$NON-NLS-1$
      System.out.println(postMorphology.printTree(null));
    }     
       
   
    NLGElement postOrthography = this.orthography.realise(postMorphology);
    if (this.debug) {
View Full Code Here

Examples of simplenlg.framework.NLGElement.printTree()

       
   
    NLGElement postOrthography = this.orthography.realise(postMorphology);
    if (this.debug) {
      System.out.println("\nPOST-ORTHOGRAPHY TREE\n"); //$NON-NLS-1$
      System.out.println(postOrthography.printTree(null));
    }
   
    NLGElement postFormatter = null;
    if (this.formatter != null) {
      postFormatter = this.formatter.realise(postOrthography);
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.