Package opennlp.ccg.util

Examples of opennlp.ccg.util.DisplayPrefs


        }
        return false;
    }
   
    public String toString() {
        DisplayPrefs prefs = Grammar.theGrammar.prefs;

        StringBuffer sb = new StringBuffer();
        sb.append(type);
        if (fragCompletion) sb.append("_c");
       
View Full Code Here


        else _supertag = sb.toString().intern();
    return _supertag;
    }
   
    public String toTeX() {
        DisplayPrefs prefs = Grammar.theGrammar.prefs;
        StringBuffer sb = new StringBuffer();
        sb.append(type);
        if(_featStruc != null && prefs.showFeats)
            sb.append(_featStruc.toTeX());
        if (sb.length() == 0) return "UnknownCat";
View Full Code Here

      throw new UnifyFailure();
    }
  }

  public String toString() {
      DisplayPrefs prefs = Grammar.theGrammar.prefs;
      StringBuffer sb = new StringBuffer();
      sb.append(_target.toString()).append(_args.toString());
      if (_lf != null && prefs.showSem) {
        sb.append(" : ").append(_lf.toString());
      }
View Full Code Here

TOP

Related Classes of opennlp.ccg.util.DisplayPrefs

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.