Giter VIP home page Giter VIP logo

openmatch's Issues

Question about similarity functions in (T5-)ANCE.

In paper ANCE , the ANCE model uses cosine similarity; where in this repo, the T5-ANCE model seems to use dot similarity.

Have you tried using cosine similarity in T5-ANCE? Does it perform worse than dot similarity? Are there any criteria for determining which similarity function should be used in different models?

HuggingFace version

I ran OpenMatch dense retrieval according to docs/dr-msmarco-passage.md, but when installing the dependencies according to README, the evaluation on the dev set during training has problems when the huggingface is up to date(4.27.1)

Feature Request: Support Soft prompt model from OpenDelta

Support and additional type of parameter efficient method from OpenDelta:

One key consideration for getting dense representations from such a model is to only mean pool the hidden state representations of real tokens.
For example:

elif self.pooling == "mean":
      soft_prompt_attention_mask = items.attention_mask
      soft_prompt_attention_mask[
          :, : model.soft_prompt_token_number
      ] = torch.zeros(
          (items.attention_mask.shape[0], model.soft_prompt_token_number)
      )
      reps = mean_pooling(
          hidden, soft_prompt_attention_mask
      )  # only pool hidden reps of real tokens

BEIR Eval Support

merge beir eval pipeline
fix split search for retrieve and successive search

has_answers Issue

There is an error in current has_answers function when meeting special characters, such as "café".

We should refer to 'pyserini':

from pyserini.eval.evaluate_dpr_retrieval import has_answers

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.