public static List<Term> combineEntities(List<Term> sentence) {
		List<Term> newSentence = new ArrayList<Term>();
		
		int idx = 0;
		StringBuilder builder = new StringBuilder();
		while (idx < sentence.size()) {
			Term term = sentence.get(idx);
			if (isPerson(term)) {
				builder.append(term.getText()).append("_");
			} else if (idx < sentence.size()-1 && isPerson(sentence.get(idx+1)) && term.getText().equals("-LRB-")) {
				builder.append("(");
			} else if (idx > 0 && isPerson(sentence.get(idx-1)) && term.getText().equals("-RRB-")) {
				builder.deleteCharAt(builder.length()-1);
				builder.append(")_");
			} else {
				if (builder.length() > 0) {
					builder.deleteCharAt(builder.length()-1);
					Term newTerm = new Term(builder.toString());
					newTerm.setNETag("PERSON");
					newSentence.add(newTerm);
					builder = new StringBuilder();
				}
				newSentence.add(term);
			} 
			idx += 1;
			
		}
		
		return newSentence;
		
	}