/** * This makes ambiguity classes from all words in the dictionary and remembers their classes in * the TagCounts */ protected void setAmbClasses(AmbiguityClasses ambClasses, int veryCommonWordThresh, TTags ttags) { for (Map.Entry<String, TagCount> entry : dict.entrySet()) { String w = entry.getKey(); TagCount count = entry.getValue(); int ambClassId = ambClasses.getClass(w, this, veryCommonWordThresh, ttags); count.setAmbClassId(ambClassId); } }