Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.apache.ctakes.temporal.ae.feature.coreference;
 
 import java.util.List;
 
import  org.cleartk.ml.Feature;
	public List<Feature> extract(JCas jCasIdentifiedAnnotation arg1,
		List<Feature> feats = new ArrayList<>();
		feats.add(new Feature("TOK_DIST",
				  JCasUtil.selectCovered(jCasBaseToken.classarg1.getBegin(), arg2.getEnd()).size() / (double).));
		feats.add(new Feature("SENT_DIST",
				JCasUtil.selectCovered(jCasSentence.classarg1.getBegin(), arg2.getEnd()).size() / (double.));
		return feats;
	}
New to GrepCode? Check out our FAQ X