Examples of TopTreebankNode


Examples of org.apache.ctakes.typesystem.type.syntax.TopTreebankNode

        parse = ParserTool.parseLine(sentStr, parser, 1)[0];
        parse.show(parseBuff);
      }
//      Span span = parse.getSpan();
      parseStr = parseBuff.toString();
      TopTreebankNode top = new TopTreebankNode(jcas, sentAnnot.getBegin(), sentAnnot.getEnd());
      top.setTreebankParse(parseBuff.toString());
      top.setTerminals(termArray);
      top.setParent(null);
      if(parse != null) recursivelyCreateStructure(jcas, top, parse, top, indexMap);
    }
    logger.info("Done parsing: " + docId);
  }
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.syntax.TopTreebankNode

    }
    if(parse == null){
      buff.append("(S null)");
    }

    TopTreebankNode ttn = new TopTreebankNode(jcas);
    ttn.setTreebankParse(buff.toString());
    ttn.addToIndexes();
  }
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.