NTMC-Community / MatchZoo

Facilitating the design, comparison and sharing of deep text matching models.
Apache License 2.0
3.84k stars 897 forks source link

How to use matchzoo for prediction on new query for passage ranking task. #801

Open aayush-gupta15 opened 4 years ago

aayush-gupta15 commented 4 years ago

I want to rank a set of passages with a particular query and find the most similar one. How can i do that using matchzoo.

bwanglzu commented 4 years ago
  1. Choose a ranking algorithm.
  2. Create datapacks using your training dataset and pre-process your data by calling the chain of preprocessors.
  3. Train your model.
  4. Preprocess your test data set.
  5. Use your trained model for prediction.