public void setPhrases() {
		List<TermPos> temp = new ArrayList<TermPos>();
		int i = 0;
		int size = this.terms.size();
		while (i < size) {
			PhraseType p;
			while (i < size && ((p = getType(i)) != PhraseType.OTHER)) {
				if (p == PhraseType.NOUN) {
					temp.add(new TermPos(terms.get(i), posTags.get(i), "BNP"));
				}
				i++;
			}
			phrases.addPhrase(temp);
			
			temp = new ArrayList<TermPos>();
			while (i < size && ((p = getType(i)) != PhraseType.NOUN)) {
				if (p == PhraseType.OTHER) {
					temp.add(new TermPos(terms.get(i), posTags.get(i), "OTHER"));
				}
				i++;
			}		
			phrases.addPhrase(temp);
		}		
	}