Package edu.stanford.nlp.movetrees

Examples of edu.stanford.nlp.movetrees.EmptyTreeLeaf


    Tree[] kids = t.children();
    for (int i = 0, n = kids.length; i < n; i++) {
      fixEmptyTreeLeafs(kids[i], newToOld, oldToNew);
    }
    if (t instanceof EmptyTreeLeaf) {
      EmptyTreeLeaf oldT = (EmptyTreeLeaf) newToOld.get(t);
      ((EmptyTreeLeaf) t).setEmptyType(oldT.emptyType());
      Tree oldTraceTo = oldT.traceTo();
      Tree newTraceTo = oldToNew.get(oldTraceTo);
      if (newTraceTo != null)
        ((EmptyTreeLeaf) t).setTraceTo(newTraceTo);
      else
        ((EmptyTreeLeaf) t).setTraceTo(oldTraceTo);
View Full Code Here

TOP

Related Classes of edu.stanford.nlp.movetrees.EmptyTreeLeaf

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.