Package synalp.commons.unification

Examples of synalp.commons.unification.FeatureConstant


  public static void printGrammarByAnchors(Grammar grammar)
  {
    for(String cat : grammar.getAllCategories())
    {
      System.out.println("Cat: " + cat);
      List<GrammarEntry> entries = new ArrayList<GrammarEntry>(grammar.getEntriesByAnchorCategory(new FeatureConstant(cat)));
      Grammar.sortByTreeSize(entries);
      Grammar.printShort(entries);
      System.out.println("\n");
    }
  }
View Full Code Here


   * @param cat
   * @param type
   */
  public static void printGrammarByAdjunction(Grammar grammar, String cat, FootType type)
  {
    FeatureConstant catConst = new FeatureConstant(cat);
    for(GrammarEntry entry : grammar.getEntriesByFoot(catConst, type))
      System.out.println(entry+"\n");
  }
View Full Code Here

TOP

Related Classes of synalp.commons.unification.FeatureConstant

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.