public Sentence (CoreMap annotatedSentence, int index, int docnum)
	{
		this.sentence = annotatedSentence.get(TextAnnotation.class);
		this.terms = new ArrayList<String>();
		this.posTags = new ArrayList<String>();
		this.index = index;
		this.docnum = docnum;
		for (CoreLabel token: annotatedSentence.get(TokensAnnotation.class)) {
			String term = token.get(TextAnnotation.class);
			String pos = token.get(PartOfSpeechAnnotation.class);
			this.terms.add(term.toLowerCase());
			this.posTags.add(pos);
		} 
		this.uniqueTerms = new HashSet<String>(terms);
		this.phrases = new Phrases();
		if (this.posTags.size() > 0 && this.posTags.get(0) != null) {
			setPhrases();
		}
	}