Package org.maltparserx.core.syntaxgraph.node

Examples of org.maltparserx.core.syntaxgraph.node.NonTerminal


      public void resetObject(Edge o) throws MaltChainedException { o.clear(); }
    };
   
    nonTerminalNodes = new TreeMap<Integer,NonTerminal>();
    nonTerminalPool = new ObjectPoolList<NonTerminal>() {
      protected NonTerminal create() throws MaltChainedException { return new NonTerminal(); }
      public void resetObject(NonTerminal o) throws MaltChainedException { o.clear(); }
    };
    clear();
  }
View Full Code Here


  public int nTerminalNode() {
    return nTokenNode();
  }
 
  public PhraseStructureNode addNonTerminalNode(int index) throws MaltChainedException {
    NonTerminal node = nonTerminalPool.checkOut();
    node.setIndex(index);
    node.setBelongsToGraph(this);
    nonTerminalNodes.put(index,node);
    return node;
  }
View Full Code Here

      public void resetObject(Edge o) throws MaltChainedException { o.clear(); }
    };
   
    nonTerminalNodes = new TreeMap<Integer,NonTerminal>();
    nonTerminalPool = new ObjectPoolList<NonTerminal>() {
      protected NonTerminal create() throws MaltChainedException { return new NonTerminal(); }
      public void resetObject(NonTerminal o) throws MaltChainedException { o.clear(); }
    };
  }
View Full Code Here

  public int nTerminalNode() {
    return nTokenNode();
  }
 
  public PhraseStructureNode addNonTerminalNode(int index) throws MaltChainedException {
    NonTerminal node = nonTerminalPool.checkOut();
    node.setIndex(index);
    node.setBelongsToGraph(this);
    nonTerminalNodes.put(index,node);
    return node;
  }
View Full Code Here

TOP

Related Classes of org.maltparserx.core.syntaxgraph.node.NonTerminal

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.