Terrier Core

Support Relevance Feedback in addition to Pseudo-Relevance Feedback

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Description:
    Currently, query expansion only supports pseudo-relevance feedback. It would be good to have support for relevance feedback also.
  1. TR-19.v1.patch
    (18 kB)
    Craig Macdonald
    04/Apr/09 4:14 PM

Activity

Hide
Craig Macdonald added a comment - 26/Feb/09 4:32 PM

Currently, QueryExpansion.java is responsible for the full QE process - selecting documents, accessing direct file, adding terms to ExpansionTerms, and re-running the query.

I propose that we have an interface which selects the feedback documents for a given query, thus allowing Psuedo-Relevance Feedback and normal Relevance Feedback (as well as mixes - only using some of the documents in the feedback).

interface FeedbackSelector
{
 public FeedbackDocument[] getFeedbackDocuments(Request r);
}

class FeedbackDocument
{
 int docid;
 int rank;
 double score;
 public int getDocid() {return docid;}
 public int getRank() {return rank;}
 public double getScore() {return score;}
}
Show
Craig Macdonald added a comment - 26/Feb/09 4:32 PM Currently, QueryExpansion.java is responsible for the full QE process - selecting documents, accessing direct file, adding terms to ExpansionTerms, and re-running the query. I propose that we have an interface which selects the feedback documents for a given query, thus allowing Psuedo-Relevance Feedback and normal Relevance Feedback (as well as mixes - only using some of the documents in the feedback).
interface FeedbackSelector
{
 public FeedbackDocument[] getFeedbackDocuments(Request r);
}

class FeedbackDocument
{
 int docid;
 int rank;
 double score;
 public int getDocid() {return docid;}
 public int getRank() {return rank;}
 public double getScore() {return score;}
}
Hide
Craig Macdonald added a comment - 04/Apr/09 4:14 PM

First patch for this issue. Works and is ready for review.

Show
Craig Macdonald added a comment - 04/Apr/09 4:14 PM First patch for this issue. Works and is ready for review.
Hide
Iadh Ounis added a comment - 06/Apr/09 12:38 PM

Many thanks Craig. Good stuff.

I also asked Ben to test.

Show
Iadh Ounis added a comment - 06/Apr/09 12:38 PM Many thanks Craig. Good stuff. I also asked Ben to test.
Hide
Ben He added a comment - 07/Apr/09 2:03 PM

patch tested ok on WT10G

Show
Ben He added a comment - 07/Apr/09 2:03 PM patch tested ok on WT10G
Hide
Craig Macdonald added a comment - 07/Apr/09 2:13 PM

Thanks for testing Ben. I have committed to trunk.

Show
Craig Macdonald added a comment - 07/Apr/09 2:13 PM Thanks for testing Ben. I have committed to trunk.

People

Dates

  • Created:
    26/Feb/09 4:32 PM
    Updated:
    07/Apr/09 2:13 PM
    Resolved:
    07/Apr/09 2:13 PM