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

Inverted2DirectMutilReduce leaves the last document one token short

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Component/s: .structures
    • Labels:
      None

      Description

      uk.ac.gla.terrier.tests.HadoopShakespeareEndToEndTest$BasicHadoopShakespeareEndToEndTest
      testBasicClassical(uk.ac.gla.terrier.tests.HadoopShakespeareEndToEndTest$BasicHadoopShakespeareEndToEndTest)
      junit.framework.AssertionFailedError: Document length is incorrect expected:<1178> but was:<1177>
      at junit.framework.Assert.fail(Assert.java:47)
      at junit.framework.Assert.failNotEquals(Assert.java:277)
      at junit.framework.Assert.assertEquals(Assert.java:64)
      at junit.framework.Assert.assertEquals(Assert.java:195)
      at uk.ac.gla.terrier.tests.ShakespeareEndToEndTest.checkDirectIndex(ShakespeareEndToEndTest.java:233)
      at uk.ac.gla.terrier.tests.ShakespeareEndToEndTest.checkIndex(ShakespeareEndToEndTest.java:308)
      at uk.ac.gla.terrier.tests.BatchEndToEndTest.doTrecTerrierIndexingRunAndEvaluate(BatchEndToEndTest.java:157)
      at uk.ac.gla.terrier.tests.BasicShakespeareEndToEndTest.testBasicClassical(BasicShakespeareEndToEndTest.java:19)

        Attachments

          Activity

          Hide
          craigm Craig Macdonald added a comment -

          Found an off by one issue in BitPostingIndexInputFormat. Shakepeare end-to-end tests now pass.

          Show
          craigm Craig Macdonald added a comment - Found an off by one issue in BitPostingIndexInputFormat. Shakepeare end-to-end tests now pass.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: