public void printDocumentTopics (PrintWriter pw) { printDocumentTopics (pw, 0.0, -1); }
public void printDocumentTopics (PrintWriter pw) { printDocumentTopics (pw, 0.0, -1); }
public void printDocumentTopics (PrintWriter pw) { printDocumentTopics (pw, 0.0, -1); }
public void printDocumentTopics (File f) throws IOException { printDocumentTopics (new PrintWriter (new FileWriter (f))); }
public void printDocumentTopics (File f) throws IOException { printDocumentTopics (new PrintWriter (new FileWriter (f))); }
public void printDocumentTopics (File f) throws IOException { printDocumentTopics (new PrintWriter (new FileWriter (f))); }
public static void main (String[] args) throws IOException { InstanceList ilist = InstanceList.load (new File(args[0])); int numIterations = args.length > 1 ? Integer.parseInt(args[1]) : 1000; int numTopWords = args.length > 2 ? Integer.parseInt(args[2]) : 20; System.out.println ("Data loaded."); LDA lda = new LDA (10); lda.estimate (ilist, numIterations, 50, 0, null, new Randoms()); // should be 1100 lda.printTopWords (numTopWords, true); lda.printDocumentTopics (new File(args[0]+".lda")); }
public static void main (String[] args) throws IOException { InstanceList ilist = InstanceList.load (new File(args[0])); int numIterations = args.length > 1 ? Integer.parseInt(args[1]) : 1000; int numTopWords = args.length > 2 ? Integer.parseInt(args[2]) : 20; System.out.println ("Data loaded."); LDA lda = new LDA (10); lda.estimate (ilist, numIterations, 50, 0, null, new Randoms()); // should be 1100 lda.printTopWords (numTopWords, true); lda.printDocumentTopics (new File(args[0]+".lda")); }
public static void main (String[] args) throws IOException { InstanceList ilist = InstanceList.load (new File(args[0])); int numIterations = args.length > 1 ? Integer.parseInt(args[1]) : 1000; int numTopWords = args.length > 2 ? Integer.parseInt(args[2]) : 20; System.out.println ("Data loaded."); LDA lda = new LDA (10); lda.estimate (ilist, numIterations, 50, 0, null, new Randoms()); // should be 1100 lda.printTopWords (numTopWords, true); lda.printDocumentTopics (new File(args[0]+".lda")); }