<commit_before>/**
 * 
 */
package edu.ucdenver.ccp.nlp.ext.uima.annotators.sentencedetectors;

import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.tcas.Annotation;

import edu.ucdenver.ccp.nlp.ext.uima.types.Sentence;

/**
 * @author Center for Computational Pharmacology, UC Denver; <EMAIL>
 *
 */
public class ExplicitSentenceCasInserter implements SentenceCasInserter {

	/**
	 * Inserts explicitly defined {@link Sentence} annotations into the CAS
	 */
	@Override
	public Annotation insertSentence(int spanStart, int spanEnd, JCas jCas) {
		Sentence sentence = new Sentence(jCas, spanStart, spanEnd);
		sentence.addToIndexes();
		return sentence;
	}<commit_msg>Added a constant to define the sentence annotation type that is created by the ExplicitSentenceCasInserter<commit_after>/**
 * 
 */
package edu.ucdenver.ccp.nlp.ext.uima.annotators.sentencedetectors;

import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.tcas.Annotation;

import edu.ucdenver.ccp.nlp.ext.uima.types.Sentence;

/**
 * @author Center for Computational Pharmacology, UC Denver; <EMAIL>
 * 
 */
public class ExplicitSentenceCasInserter implements SentenceCasInserter {

	/**
	 * The annotation class inserted by this {@link SentenceCasInserter} implementation
	 */
	public static final Class<? extends Annotation> SENTENCE_ANNOTATION_CLASS = Sentence.class;

	/**
	 * Inserts explicitly defined {@link Sentence} annotations into the CAS
	 */
	@Override
	public Annotation insertSentence(int spanStart, int spanEnd, JCas jCas) {
		Sentence sentence = new Sentence(jCas, spanStart, spanEnd);
		sentence.addToIndexes();
		return sentence;
	}
{'fraction_non_alphanumeric': 0.10214067278287461, 'fraction_numerical': 0.0, 'mean_word_length': 4.906137184115524, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6209086', 'n_tokens_mistral': 581, 'n_tokens_neox': 523, 'n_words': 129}