Examples of DEPState


Examples of com.clearnlp.component.state.DEPState

   * @param uniqueOnly if {@code true}, include only unique trees.
   * @return a list of pairs containing parsed trees and their scores, sorted by scores in descending order.
   */
  public List<ObjectDoublePair<DEPTree>> getParsedTrees(DEPTree tree, boolean uniqueOnly)
  {
    DEPState state = init(tree);
    processAux(state);
   
    List<ObjectsDoubleTriple<List<StringInstance>,StringIntPair[]>> branches = state.getBranches();
    List<ObjectDoublePair<DEPTree>> trees = Lists.newArrayList();
    Set<String> set = Sets.newHashSet();
    String s;
   
    UTCollection.sortReverseOrder(branches);
View Full Code Here

Examples of com.clearnlp.component.state.DEPState

  }
 
  @Override
  public void process(DEPTree tree)
  {
    DEPState state = init(tree);
    processAux(state);
   
    if (isDevelopOrDecode())
    {
      processHeadless(state);
      postProcess(state);
     
      if (isDevelop())
        e_eval.countAccuracy(state.getTree(), state.getGoldLabels());
    }
  }
View Full Code Here

Examples of com.clearnlp.component.state.DEPState

  }
 
  /** Called by {@link AbstractDEPParser#process(DEPTree)}. */
  protected DEPState init(DEPTree tree)
  {
    DEPState state = new DEPState(tree);
   
    if (!isDecode())
     {
      state.setGoldLabels(tree.getHeads());
       tree.clearHeads()
     }
   
    return state;
  }
View Full Code Here

Examples of com.clearnlp.component.state.DEPState

   * @param uniqueOnly if {@code true}, include only unique trees.
   * @return a list of pairs containing parsed trees and their scores, sorted by scores in descending order.
   */
  public List<ObjectDoublePair<DEPTree>> getParsedTrees(DEPTree tree, boolean uniqueOnly)
  {
    DEPState state = init(tree);
    processAux(state);
   
    List<ObjectsDoubleTriple<List<StringInstance>,StringIntPair[]>> branches = state.getBranches();
    List<ObjectDoublePair<DEPTree>> trees = Lists.newArrayList();
    Set<String> set = Sets.newHashSet();
    String s;
   
    UTCollection.sortReverseOrder(branches);
View Full Code Here

Examples of com.clearnlp.component.state.DEPState

  }
 
  @Override
  public void process(DEPTree tree)
  {
    DEPState state = init(tree);
    processAux(state);
   
    if (isDevelopOrDecode())
    {
      processHeadless(state);
      postProcess(state);
     
      if (isDevelop())
        e_eval.countAccuracy(state.getTree(), state.getGoldLabels());
    }
  }
View Full Code Here

Examples of com.clearnlp.component.state.DEPState

  }
 
  /** Called by {@link AbstractDEPParser#process(DEPTree)}. */
  protected DEPState init(DEPTree tree)
  {
    DEPState state = new DEPState(tree);
   
    if (!isDecode())
     {
      state.setGoldLabels(tree.getHeads());
       tree.clearHeads()
     }
   
    return state;
  }
View Full Code Here

Examples of com.clearnlp.component.state.DEPState

   * @param uniqueOnly if {@code true}, include only unique trees.
   * @return a list of pairs containing parsed trees and their scores, sorted by scores in descending order.
   */
  public List<ObjectDoublePair<DEPTree>> getParsedTrees(DEPTree tree, boolean uniqueOnly)
  {
    DEPState state = init(tree);
    processAux(state);
   
    List<ObjectsDoubleTriple<List<StringInstance>,StringIntPair[]>> branches = state.getBranches();
    List<ObjectDoublePair<DEPTree>> trees = Lists.newArrayList();
    Set<String> set = Sets.newHashSet();
    String s;
   
    UTCollection.sortReverseOrder(branches);
View Full Code Here

Examples of com.clearnlp.component.state.DEPState

  }
 
  @Override
  public void process(DEPTree tree)
  {
    DEPState state = init(tree);
    processAux(state);
   
    if (isDevelopOrDecode())
    {
      processHeadless(state);
      postProcess(state);
     
      if (isDevelop())
        e_eval.countAccuracy(state.getTree(), state.getGoldLabels());
    }
  }
View Full Code Here

Examples of com.clearnlp.component.state.DEPState

  }
 
  /** Called by {@link AbstractDEPParser#process(DEPTree)}. */
  protected DEPState init(DEPTree tree)
  {
    DEPState state = new DEPState(tree);
   
    if (!isDecode())
     {
      state.setGoldLabels(tree.getHeads());
       tree.clearHeads()
     }
   
    return state;
  }
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.