List of usage examples for edu.stanford.nlp.util StringUtils trim
public static String trim(Object obj, int maxWidth)
From source file:LVCoref.Document.java
License:Open Source License
public void printClusters() { Log.p("CLUSTERS:"); for (Integer i : corefClusters.keySet()) { CorefCluster c = corefClusters.get(i); if (c.corefMentions.size() > 1) { Log.p(String.format("---C" + i + "--- [%s/%s] [%s]", c.category, c.representative.category, c.representative.nerString)); for (Mention m : c.corefMentions) { Log.p(String.format("%s(%s) %s [%s] ", m.node.word, m.node.tag, m.categories.toString(), StringUtils.trim(m.nerString + " |", 40))); }/*from w ww . ja v a 2 s . com*/ } } }