code: public Sentence filter(Sentence sent)
  	{
  		//logger.debug("\"" + Array.toString(sent) + "\"");
  
  		int start = 0, end = sent.length() - 1;
  		boolean b = false;
  		for (int i=0;i<sent.length();i++)
  		{
  			if (sent.wordAt(i).getRole().equals(Word.AGENT_LABEL))
  			{
  					start = i - getSize();
  					b = true;
  					break;
  			}
  		} // end for i
  
  		if (!b)
  			return null;
  
  		end = start + 2 * getSize() + 1;
  
  		if (start < 0)
  			start = 0;
  
  		if (end > sent.length())
  			end = sent.length();
  
  		return sent.fragment(start, end);
  
  	}
docs: context. verificare