public Map<String, Integer> getTerms(SQLconnection sqLconnection,int paperID) {
		String query = "select term from terminvertedindex where paperID="+ paperID;
		ResultSet terms=sqLconnection.Query(query);
		Map<String, Integer> termcountMap=new HashMap<>();
		try {
			while(terms.next())
			{
				String term=terms.getString("term");
				if(termcountMap.containsKey(term))
					termcountMap.put(term, termcountMap.get(term)+1);
				else {
					termcountMap.put(term, 1);
				}
			}
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return termcountMap;
	}