Uploaded image for project: 'Terrier Core'
  1. Terrier Core
  2. TR-364

TwitterJSONCollection incorrectly assumes all files are gzipped.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: None
    • Labels:
      None

      Description

      Documentation for the TwitterJSONCollection class says: "Each file is assumed to be in gzip format, with one tweet per line. "

      Line 109 has:
       currentTweetStream = new BufferedReader(new InputStreamReader(new GZIPInputStream(new FileInputStream(file)),"UTF-8"));

      This can simply be replaced with
      currentTweetStream = Files.openFileReader( file, "UTF-8" );
      and the documentation updated.

        Attachments

          Activity

          craigm Craig Macdonald created issue -
          craigm Craig Macdonald made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Richard McCreadie [ richardm ] Craig Macdonald [ craigm ]
          Resolution Fixed [ 1 ]
          richardm Richard McCreadie made changes -
          Project TREC [ 10010 ] Terrier Core [ 10000 ]
          Key TREC-408 TR-364
          Workflow jira [ 10888 ] Terrier Open Source [ 10968 ]
          Affects Version/s 4.0 [ 10051 ]
          Affects Version/s 4.0 [ 10050 ]
          Component/s Core [ 10020 ]
          Fix Version/s 4.1 [ 10070 ]
          Fix Version/s 4.1 [ 10071 ]

            People

            • Assignee:
              craigm Craig Macdonald
              Reporter:
              craigm Craig Macdonald
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: