Sha256: 5dbaf248643683609850fecb5ef4dfb590d44dd3b55d9fb892c8db76471176ab

Contents?: true

Size: 373 Bytes

Versions: 4

Compression:

Stored size: 373 Bytes

Contents

import edu.stanford.nlp.ling.CoreAnnotation;
import edu.stanford.nlp.ling.CoreLabel;

public class Stanford {
    
    public static Object getAnnotation(CoreLabel entity, String name) throws ClassNotFoundException{
    	Class<CoreAnnotation> klass;
    	klass = (Class<CoreAnnotation>) Class.forName(name);
    	Object object = entity.get(klass);
		return object;
    }

}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stanford-core-nlp-0.4.1 bin/Stanford.java
stanford-core-nlp-0.4.0 bin/Stanford.java
stanford-core-nlp-0.3.5 bin/Stanford.java
stanford-core-nlp-0.3.4 bin/Stanford.java