List<String> posList = new ArrayList<String>(64);
List<Token> tokenList = new ArrayList<Token>(64);
//process each sentence seperatly
while(sentences.hasNext()){
// (1) get Tokens and POS information for the sentence
Section sentence = sentences.next();
Iterator<Token> tokens = sentence.getTokens();
while(tokens.hasNext()){
Token token = tokens.next();
tokenList.add(token);
tokenTextList.add(token.getSpan());
Value<PosTag> posValue = token.getAnnotation(POS_ANNOTATION);
if(posValue == null){
throw new EngineException("Missing POS value for Token '"
+ token.getSpan()+"' of ContentItem "+ci.getUri()
+ "(Sentence: '"+sentence.getSpan()+"'). This may "
+ "indicate that a POS tagging Engine is missing in "
+ "the EnhancementChain or that the used POS tagging "
+ "does not provide POS tags for each token!");
} else {
posList.add(posValue.value().getTag());