public int getInDocumentFrequency(String document){
        for(Occurrence occ: docsList.toArray()){
            if(occ.getDocName().compareTo(document) == 0){
                return occ.getTermFrequency();
            }
        }
        return -1;
    }