private ArrayList<Answer> extractAnswers(Document d) {
		ArrayList<Answer> as = new ArrayList<Answer>();
		
		Annotation document = new Annotation(d.getText());
		pipeline.annotate(document);

		List<CoreMap> sentences = document.get(SentencesAnnotation.class);
		for(CoreMap sentence: sentences) {
			boolean add = false;
			
			for (CoreLabel token: sentence.get(TokensAnnotation.class)) {
				String ne = token.get(NamedEntityTagAnnotation.class);
				if (ne.equalsIgnoreCase(q.atype.name())) {
					add = true;
					break;
				}
			}
			if (add) {
				as.add(new Answer(sentence.toString().replaceAll("\n", ""), d.getID()));
			}
		}
		
		return as;
		
	}