Package opennlp.ccg.hylo

Examples of opennlp.ccg.hylo.Flattener


      throw new IllegalArgumentException("lf is null");
    }
   
    LFGraph g = new LFGraph(DEFAULT_EDGE_FACTORY);
   
    Flattener f = new Flattener();
    List<SatOp> satOps = f.flatten(lf);
    Map<Nominal,Nominal> ancestorMap = f.getHighestParentMap();
   
    for(SatOp so : satOps) { // first pass adds vertices
      if(isLexPred(so)) {
        g.addVertex(new LFVertex(so.getNominal(), (Proposition)so.getArg()));
      }
View Full Code Here

TOP

Related Classes of opennlp.ccg.hylo.Flattener

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.