tsandre / java-intelligent-tutor

Automatically exported from code.google.com/p/java-intelligent-tutor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change implementation of selecting top X sorted items in TFIDFVector.java

GoogleCodeExporter opened this issue · comments

In public ArrayList<String> getSortedTerms(NodeToCompare nodeType, int topX):
Instead of selecting top X items in the current way, implement a List<KeyValue> 
replacing Map<>, so that the Collection utilities sort() and reverse() and List 
utility subList() can be implemented directly on the map rather than 
Set<values> of the map.

Original issue reported on code.google.com by aniket.a...@gmail.com on 10 Jan 2011 at 1:21