Opened 9 years ago

Closed 9 years ago

#667 closed enhancement (worksforme)

LMWeight implementation for Python

Reported by: Iacer Calixto Owned by: Richard Boulton
Priority: normal Milestone:
Component: Xapian-bindings (Python) Version:
Severity: normal Keywords: python LMWeight weight
Cc: Blocked By:
Blocking: Operating System: All

Description

Hi everyone,

I have recently started using Xapian with Python and everything is running smooth. There is one issue, though: I cannot find the swig bindings for the class xapian.LMWeight (Xapian::LMWeight), though the ones for BM25Weight, TradWeight and BoolWeight exist. Was it on purpose? Could I then ask for the implementation of the weighting scheme LMWeight for the Python bindings?

I apologise in case this is not the right channel or if I have got something wrong.

Best regards,

Iacer.

Change History (1)

comment:1 by Olly Betts, 9 years ago

Resolution: worksforme
Severity: majornormal
Status: newclosed

You don't mention what version of Xapian you're using, but LMWeight was added to the C++ API in 1.3.2, so you'll only find it in the bindings there, where it is present:

>>> import xapian
>>> w = xapian.LMWeight()
>>> str(w)
"<xapian.LMWeight; proxy of <Swig Object of type 'Xapian::LMWeight *' at 0x7f1637782420> >"
>>> 
Note: See TracTickets for help on using tickets.