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

Parsing of WeightingModel class names could be better

    Details

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

      Description

      Currently, we parse WeightingModel class names in the following manner:
      DPH => uk.ac.gla.terrier.matching.models.DPH ("DPH" doesnt contain a ., so add package).
      However, this breaks if the weighting model has parameters, e.g.:
      DFRWeightingModel(uk.ac.gla.terrier.matching.models.basicmodel.P, L, 2)

      We need a bit more intelligence in how the brackets are parsed.

        Attachments

          Activity

          craigm Craig Macdonald created issue -
          craigm Craig Macdonald made changes -
          Field Original Value New Value
          Fix Version/s 3.1 [ 10021 ]
          craigm Craig Macdonald made changes -
          Assignee Craig Macdonald [ craigm ] Rodrygo L. T. Santos [ rodrygo ]
          rodrygo Rodrygo L. T. Santos made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          craigm Craig Macdonald made changes -
          Project TREC [ 10010 ] Terrier Core [ 10000 ]
          Key TREC-103 TR-131
          Issue Type Improvement [ 4 ] Bug [ 1 ]
          Workflow jira [ 10214 ] Terrier Open Source [ 10524 ]
          Component/s .matching [ 10004 ]
          Component/s Core [ 10020 ]
          Fix Version/s 3.1 [ 10040 ]
          Fix Version/s 3.1 [ 10021 ]

            People

            • Assignee:
              rodrygo Rodrygo L. T. Santos
              Reporter:
              craigm Craig Macdonald
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: