multilingual-ctap-feature/src/main/java/com/ctapweb/feature/annotator/SyllableAnnotator.java
private void annotateSyllables(String surfStr) {
		Pattern splitter = Pattern.compile(syllablePattern);
		Matcher m = splitter.matcher(surfStr);

		while (m.find()) {
			//finds a syllable
			Syllable annotation = new Syllable(aJCas);
			annotation.setBegin(m.start() + surfaceForm.getBegin());
			annotation.setEnd(m.end() + surfaceForm.getBegin());
			annotation.addToIndexes();
			//logger.info("syllable: " + annotation.getBegin() + ", " + annotation.getEnd() + " \'"  + annotation.getCoveredText()+"\'");
		}
	}
/**
	 * Annotates the syllables in the token string.
	 *
	 * @param surfStr the token string to be annotated
	 * @return
	 */
Annotates the syllables in the token string.
@param surfStr the token string to be annotated
@return
Annotates the syllables in the token string . @param surfStr the token string to be annotated @return
private void annotateSyllables(String surfStr) {
		Pattern splitter = Pattern.compile(syllablePattern);
		Matcher m = splitter.matcher(surfStr);
		while (m.find()) {
			Syllable annotation = new Syllable(aJCas);
			annotation.setBegin(m.start() + surfaceForm.getBegin());
			annotation.setEnd(m.end() + surfaceForm.getBegin());
			annotation.addToIndexes();
		}
	}
private void annotateSyllables ( String surfStr ) { Pattern splitter = Pattern . compile ( syllablePattern ) ; Matcher m = splitter . matcher ( surfStr ) ; while ( m . find ( ) ) { Syllable annotation = new Syllable ( aJCas ) ; annotation . setBegin ( m . start ( ) + surfaceForm . getBegin ( ) ) ; annotation . setEnd ( m . end ( ) + surfaceForm . getBegin ( ) ) ; annotation . addToIndexes ( ) ; } }
Annotates the syllables in the token string.
Annotates the syllables in the token string .
//finds a syllable //logger.info("syllable: " + annotation.getBegin() + ", " + annotation.getEnd() + " \'"  + annotation.getCoveredText()+"\'");