Code Monkey home page Code Monkey logo

ir_axioms's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

arthurcamara

ir_axioms's Issues

Use PyTerrier Index Stand-Alone

At the moment, we need the text of the documents (e.g., provided by ir_datasets).
The goal of this ticket is, that ir_axioms works standalone from an PyTerrier Index.

More variants for embedding-based similarities

The STMC1, STMC2, and REG axioms depend on similarities. It might be promising to have similarity variants that are based on word embeddings fine-tuned on test collections like Robust 04.
It is only required to have some word embeddings that PyMagnitude can handle, the rest is already implemented.

To implement new embedding variants, take a look at the fastText implementation here:

class FastTextWikiNewsTermSimilarityMixin(MagnitudeTermSimilarityMixin):
embeddings_path: Final[str] = "fasttext/medium/wiki-news-300d-1M.magnitude"

Define a new similarity mixin extending MagnitudeTermSimilarityMixin and then implement variants of STMC1, STMC2, and REG like this:

@dataclass(frozen=True)
class STMC1_fastText(_STMC1, FastTextWikiNewsTermSimilarityMixin):
name = "STMC1-fastText"

Parallelisation

Hi everyone! First of all, this is really nice work, that could potentially put axioms back into fashion =)
However, I've noticed that at least when using the system naively, there is no support for parallel execution (via threads of processes). So, if you want to extract all triples of preferences from, say, the training set of MsMarco, it is unfeasible to be done.

To be more specific, when talking about the axiomatic preferences modules, at least in theory, it should be possible to start a pool of workers and a queue of jobs, where each job is a query (and its corresponding ranking).

Alternatively, I've seen that you mention that ir-axioms is compatible with SLURM commands. How one would go to start a (series of) slurm jobs using it?

Thanks!

Optimize operators with MatchPy

To improve a combined axiom's performance we could simplify complex axiom expressions using pattern matching with MatchPy. The current approach only "optimizes" by overloading the operator functions, e.g., __and__ in AndAxiom, but cannot resolve deep nested axiom expressions.

Python 3.7 interop

We could backport some functionality, so that ir_axioms also works with Python 3.7.
This would allow users to experiment with ir_axioms in Google Colab

Define CLI

Define a simple command line interface (CLI) to use axioms with existing run files, qrels etc.
We should then support most of the use cases from the CLI.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.