Git Product home page Git Product logo

Comments (6)

MXueguang avatar MXueguang commented on June 6, 2024 1

@nirmal2k the model mentioned above is a uniCOIL model
castorini/unicoil-d2q-msmarco-passage
We dont have cls_proj for unicoil.
In the huggingface model, the tok_proj parameters are under key coil_encoder.tok_proj. inside pytorch_model.bin
Here we defined the class to directly load the model from huggingface
https://github.com/castorini/pyserini/blob/88479fdecdb5d44934f4d91be56487148ec6601c/pyserini/encode/_unicoil.py#L27

from coil.

MXueguang avatar MXueguang commented on June 6, 2024

Yes, we have our checkpoint released on huggingface
castorini/unicoil-d2q-msmarco-passage

And here is a reproduce doc for your reference (in pyserini):
https://github.com/castorini/pyserini/blob/master/docs/experiments-unicoil.md

from coil.

aecio avatar aecio commented on June 6, 2024

Great, thank you!

My goal is to use uniCOIL and COIL with a different corpus. Is there also any guide that covers how to apply it to a different text collection (e.g., how to prepare a corpus input data that can be used with the run_marco.py script for text encoding)?

My current understanding is that I would need to train a model (or use the model you just shared). Then I need to apply the model to pre-process the text collection using the commands described in the Encoding subsection, then convert the run_marco.py's output to an Anserini's data JSONL collection input format using doc_emb_to_jsonl.py, and the follow the standard Anserini commands (with the necessary adjustments) described in the doc that you linked.

Is this correct?

from coil.

MXueguang avatar MXueguang commented on June 6, 2024

Yes it is correct.

The current input (the json) file is tokenized passage in following format: "text": " [SEP] ".
In uniCOIL work, we generate expansions by docTTTTTquery.
For your own corpus, you can either use your own expansion for passage or simply do it without expansion.

from coil.

aecio avatar aecio commented on June 6, 2024

Thanks very much!

from coil.

nirmal2k avatar nirmal2k commented on June 6, 2024

I think I'm missing something. May I know where to find tok_proj and cls_proj models? Is it a part of the model at huggingface?

from coil.

Related Issues (20)

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.