[c09aa8]: / clusters / scripts / mostwords.java

Download this file

17 lines (15 with data), 472 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
import java.util.*;
import java.io.*;
public class mostwords {
public static void main(String[] args) throws Exception {
for (int i = 0; i < 300; i++) {
Scanner in = new Scanner(new File("./final340numclusters/clust_" + i + ".txt"));
PrintWriter out = new PrintWriter(new File("./commonwords340/words_" + i + ".txt"));
Map<String, Integer> instances = new HashMap<String, Integer>();
while (in.hasNext()) {
}
in.close();
out.close();
}
}
}