Package com.clearnlp.component.state

Examples of com.clearnlp.component.state.SRLState


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


  }
 
  /** Called by {@link AbstractSRLabeler#process(DEPTree)}. */
  protected SRLState init(DEPTree tree)
  {
    SRLState state = new SRLState(tree);
   
    if (!isDecode())
    {
      state.setGoldLabels(tree.getSHeads());
      tree.clearSHeads();
    }
    else
      tree.initSHeads();

View Full Code Here

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

  }
 
  /** Called by {@link AbstractSRLabeler#process(DEPTree)}. */
  protected SRLState init(DEPTree tree)
  {
    SRLState state = new SRLState(tree);
   
    if (!isDecode())
    {
      state.setGoldLabels(tree.getSHeads());
      tree.clearSHeads();
    }
    else
      tree.initSHeads();

View Full Code Here

TOP

Related Classes of com.clearnlp.component.state.SRLState

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.