Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 5.2
    • Component/s: .querying
    • Labels:
      None

      Description

      Hi,
      I've encountred a parrsing error while trying to run a query in batchretrive mode and by using #combine.
      Exception in thread "main" org.terrier.querying.parser.TokenMgrError: Lexical er
      ror at line 1, column 1. Encountered: "#" (35), after : ""
      The whole message in attached file.
      the query file has only one line :
      1 #combine:0=0.05(compress labo)
      Thanks.

        Attachments

          Activity

          Hide
          craigm Craig Macdonald added a comment -

          See bin/terrier help br

          Craig

          Show
          craigm Craig Macdonald added a comment - See bin/terrier help br Craig
          Hide
          eltaani redha eltaani added a comment - - edited

          Thanks Creg for quick replay.
          Yes I used the "-m" for queries are formated in Matchingop but got the error as well ?

          Show
          eltaani redha eltaani added a comment - - edited Thanks Creg for quick replay. Yes I used the "-m" for queries are formated in Matchingop but got the error as well ?
          Hide
          eltaani redha eltaani added a comment -

          also added these lines to terrier.proprties file :
          SingleLineTRECQuery.tokenise = false
          trec.topics.parser=SingleLineTRECQuery

          Show
          eltaani redha eltaani added a comment - also added these lines to terrier.proprties file : SingleLineTRECQuery.tokenise = false trec.topics.parser=SingleLineTRECQuery
          Hide
          eltaani redha eltaani added a comment -

          Any help or suggestion ?

          Show
          eltaani redha eltaani added a comment - Any help or suggestion ?
          Hide
          craigm Craig Macdonald added a comment -

          Thanks for your patience, and for helping to explain what you did and why it didnt work. I have confirmed it is a bug.

          The relevant code for "-m" which doesnt seem to be working is:

                      srq.setControl("parsecontrols", "off");
                      srq.setControl("parseql", "off");
                      srq.setControl("terrierql", "off");
                      srq.setControl("matchopql", "on");
          

          hence, you should be able to get the same effect with:

          bin/terrier br -c parsecontrols:off -c parseql:off -c terrierql:off -c matchopql:on
          

          It doesnt seem to be working now, so I will double check, debug, and aim to patch the github version in the next few days.

          What name and institution should I credit the bug report to?

          Craig

          Show
          craigm Craig Macdonald added a comment - Thanks for your patience, and for helping to explain what you did and why it didnt work. I have confirmed it is a bug. The relevant code for "-m" which doesnt seem to be working is: srq.setControl( "parsecontrols" , "off" ); srq.setControl( "parseql" , "off" ); srq.setControl( "terrierql" , "off" ); srq.setControl( "matchopql" , "on" ); hence, you should be able to get the same effect with: bin/terrier br -c parsecontrols:off -c parseql:off -c terrierql:off -c matchopql:on It doesnt seem to be working now, so I will double check, debug, and aim to patch the github version in the next few days. What name and institution should I credit the bug report to? Craig
          Hide
          eltaani redha eltaani added a comment -

          Thanks Craig for you help.
          Redha ELtaani
          Informatic Department.
          PhD candidat (Université du Québec à Montréal - Canada).

          Show
          eltaani redha eltaani added a comment - Thanks Craig for you help. Redha ELtaani Informatic Department. PhD candidat (Université du Québec à Montréal - Canada).
          Hide
          craigm Craig Macdonald added a comment -

          Thanks. I have fixed this in my working branch of Terrier - see https://github.com/terrier-org/terrier-core/tree/InvertedIndexBuilder

          (I plan to shortly merge this all into the 5.x branch).

          The relevant commit, should you wish to simply patch your own version is
          https://github.com/terrier-org/terrier-core/commit/54b2eb8eefb69392f449b61d00bdf10ba15df26a

          Craig

          Show
          craigm Craig Macdonald added a comment - Thanks. I have fixed this in my working branch of Terrier - see https://github.com/terrier-org/terrier-core/tree/InvertedIndexBuilder (I plan to shortly merge this all into the 5.x branch). The relevant commit, should you wish to simply patch your own version is https://github.com/terrier-org/terrier-core/commit/54b2eb8eefb69392f449b61d00bdf10ba15df26a Craig

            People

            • Assignee:
              craigm Craig Macdonald
              Reporter:
              eltaani redha eltaani
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: