question: public void buildCorpus ( ) { Set < String > set = new HashSet < String > ( hamTokenCounts . size ( ) + spamTokenCounts . size ( ) ) ; set . addAll ( hamTokenCounts . keySet ( ) ) ; set . addAll ( spamTokenCounts . keySet ( ) ) ; Map < String , Double > tempCorpus = new HashMap < String , Double > ( set . size ( ) ) ; for ( String token : set ) { tempCorpus . put ( token , computeProbability ( token ) ) ; } setCorpus ( tempCorpus ) ; }
target:  Builds the corpus from the existing ham & spam counts.