Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-717

LDAPrintTopics only prints first topic when outputting to stdout

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.5
    • 0.6
    • None
    • None

    Description

      LDAPrintTopics uses a PrintWriter to output topics.
      This PrintWriter wraps a File when an output directory is specified and System.out otherwise.
      This PrintWriter is closed and recreated for each topic; which doesn't work for the System.out case (since it closes System.out)
      Fix is to flush the stream and close only in the output directory case.

      Attachments

        1. mahout-717.patch
          0.6 kB
          Mat Kelcey

        Activity

          People

            srowen Sean R. Owen
            mat_kelcey Mat Kelcey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: