[TR-131] Parsing of WeightingModel class names could be better Created: 23/Oct/09  Updated: 05/Apr/11  Resolved: 30/Mar/11

Status: Resolved
Project: Terrier Core
Component/s: .matching
Affects Version/s: None
Fix Version/s: 3.5

Type: Bug Priority: Minor
Reporter: Craig Macdonald Assignee: Rodrygo L. T. Santos
Resolution: Fixed  
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.

 Comments   
Comment by Craig Macdonald [ 28/Jan/10 ]

Tagged for 3.1

Comment by Rodrygo L. T. Santos [ 30/Mar/11 ]

Fixed WeightingModelFactory accordingly.

Generated at Sat Dec 16 18:28:51 GMT 2017 using JIRA 7.1.1#71004-sha1:d6b2c0d9b7051e9fb5e4eb8ce177ca56d91d7bd8.