static Map dm_ontology_trainingSet_wordScores() { PairL data = dm_ontology_trainingSet(); Pair textData = pair(mapMethod render(data.a), mapMethod render(data.b)); L> posSets = map uniqueWords(textData.a); L> negSets = map uniqueWords(textData.b); Map map = ciMap(); for (Set set : posSets) for (S word : set) getOrCreatePosNegScore(map, word).pos++; for (Set set : negSets) for (S word : set) getOrCreatePosNegScore(map, word).neg++; ret map; }