@Override
protected List<String> getFeatures(MentionContext mention, DiscourseEntity entity) {
List<String> features = new ArrayList<String>();
features.addAll(super.getFeatures(mention, entity));
if (entity != null) {
MentionContext ant = entity.getLastExtent();
List<String> leftContexts = ResolverUtils.getContextFeatures(ant);
for (int ci = 0, cn = leftContexts.size(); ci < cn; ci++) {
features.add("l" + leftContexts.get(ci));
}
List<String> rightContexts = ResolverUtils.getContextFeatures(mention);
for (int ci = 0, cn = rightContexts.size(); ci < cn; ci++) {
features.add("r" + rightContexts.get(ci));
}
features.add("hts"+ant.getHeadTokenTag()+","+mention.getHeadTokenTag());
}
/*
if (entity != null) {
//System.err.println("MaxentIsResolver.getFeatures: ["+ec2.toText()+"] -> ["+de.getLastExtent().toText()+"]");
//previous word and tag