Sha256: e93d9d01c00e447f21e53c6ce3d29cd5ddc9a2a0ec383aa1b5982cd59186d75c
Contents?: true
Size: 398 Bytes
Versions: 6
Compression:
Stored size: 398 Bytes
Contents
import edu.stanford.nlp.ling.CoreAnnotation; import edu.stanford.nlp.util.ArrayCoreMap; public class AnnotationBridge { public static Object getAnnotation(Object entity, String name) throws ClassNotFoundException { Class<CoreAnnotation> klass; klass = (Class<CoreAnnotation>) Class.forName(name); Object object = ((ArrayCoreMap) entity).get(klass); return object; } }
Version data entries
6 entries across 6 versions & 1 rubygems