search for: get_parameterized_weighting_scheme

Displaying 2 results from an estimated 2 matches for "get_parameterized_weighting_scheme".

2017 Apr 09
3
Omega: Missing support for newer weighting schemes
On Sun, Apr 09, 2017 at 11:34:07PM +0530, Vivek Pal wrote: > > Each scheme already has a human-readable name, and Xapian::Registry > > can map that to an "examplar" object of the right type, so we > > could take a string like "bm25 1 0.8", see the first word is "bm25" > > and get a BM25Weight object, then call parse_params("1 0.8") on
2017 Apr 13
2
Omega: Missing support for newer weighting schemes
...ubclass e.g. BM25Weight, LMWeight > etc.? Sorry, I was misusing that name for the static "dispatcher" method as well as the virtual method implementing the parameter parsing. > > There's probably a much better name than parse_params() though. > > Yes, I agree. May be get_parameterized_weighting_scheme sound better? (if it > isn't too long to read :)) That makes it sound like a getter, whereas it's really a factory method. Also we use British English spellings in the API so it'd be "parameterised" (we could provide inline aliases, though we haven't for other cases s...