public void retrieveTopics(DepTree tree) { DepNode node, pred; SRLInfo info; String feat; Prob2dMap pTA, pAT; for (int i = 1; i < tree.size(); i++) { node = tree.get(i); info = node.srlInfo; if (!node.isPosx("NN.*")) continue; for (SRLHead head : info.heads) { pred = tree.get(head.headId); if ((feat = pred.getFeat("ct")) == null) continue; pTA = getSubMap(m_ta, feat); pTA.increment(head.label, node.lemma); pAT = getSubMap(m_at, feat); pAT.increment(node.lemma, head.label); getSubSet(s_verbs, feat).add(pred.lemma); } } }