code: public String getPosFromMatchResult(int tokBegin, int tokEnd, Sentence s, JCas jcas) {
  		// get all tokens in sentence
  		HashMap<Integer, Token> hmTokens = new HashMap<Integer, Token>();
  		FSIterator iterTok = jcas.getAnnotationIndex(Token.type).subiterator(s);
  		while (iterTok.hasNext()) {
  			Token token = (Token) iterTok.next();
  			hmTokens.put(token.getBegin(), token);
  		}
  		// get correct token
  		String pos = "";
  		if (hmTokens.containsKey(tokBegin)) {
  			Token tokenToCheck = hmTokens.get(tokBegin);
  			pos = tokenToCheck.getPos();
  		}
  		return pos;
  	}
docs: Identify the part of speech (POS) of a MarchResult.
  @param tokBegin
  @param tokEnd
  @param s
  @param jcas
  @return