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

terrier refuses to parse some topics (example included)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.5
    • Fix Version/s: 3.6
    • Component/s: None
    • Labels:
      None

      Description

      when parsing this topic file:

      <topics>
          <top>
              <num>1111></num>
              <title>interesting topic</title>
          </top>
      </topics>

       terrier 3.5 exits with an exception:

      INFO - Loading document lengths for document structure into memory
      INFO - Structure meta reading lookup file into memory
      INFO - Structure meta reading reverse map for key docno directly from disk
      INFO - Structure meta loading data file into memory
      INFO - time to intialise index : 0.319
      ERROR - Error instantiating topic file QuerySource called TRECQuery
      java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAcces
          at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
          at org.terrier.applications.TRECQuerying.getQueryParser(TRECQuerying.java:797)
          at org.terrier.applications.TRECQuerying.<init>(TRECQuerying.java:344)
          at org.terrier.applications.TrecTerrier.run(TrecTerrier.java:393)
          at org.terrier.applications.TrecTerrier.applyOptions(TrecTerrier.java:564)
          at org.terrier.applications.TrecTerrier.main(TrecTerrier.java:235)
      Caused by: java.lang.NullPointerException
          at org.terrier.structures.TRECQuery.extractQuery(TRECQuery.java:163)
          at org.terrier.structures.TRECQuery.extractQuery(TRECQuery.java:87)
          at org.terrier.structures.TRECQuery.<init>(TRECQuery.java:272)
          ... 9 more
      A problem occurred: java.lang.NullPointerException
      java.lang.NullPointerException
          at org.terrier.applications.TRECQuerying.processQueries(TRECQuerying.java:829)
          at org.terrier.applications.TrecTerrier.run(TrecTerrier.java:394)
          at org.terrier.applications.TrecTerrier.applyOptions(TrecTerrier.java:564)
          at org.terrier.applications.TrecTerrier.main(TrecTerrier.java:235)

      The problem occurs only with certain strings inside the <num></num> tags. For example, replacing 1111 with 1112 works just fine.

        Attachments

          Issue Links

            Activity

            gaston Richard Berendsen created issue -
            craigm Craig Macdonald made changes -
            Field Original Value New Value
            Link This issue is duplicated by TR-185 [ TR-185 ]
            craigm Craig Macdonald made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Fix Version/s 3.6 [ 10060 ]
            Resolution Duplicate [ 3 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: