public class Feedback
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
ALPHA
A Rochio/Ide algorithm parameter
|
java.util.ArrayList<DocumentReference> |
badDocRefs
The list of DocumentReference's that were rated irrelevant
|
static double |
BETA
A Rochio/Ide algorithm parameter
|
static double |
GAMMA
A Rochio/Ide algorithm parameter
|
java.util.ArrayList<DocumentReference> |
goodDocRefs
The list of DocumentReference's that were rated relevant
|
InvertedIndex |
invertedIndex
The current InvertedIndex
|
HashMapVector |
queryVector
The original query vector for this query
|
Retrieval[] |
retrievals
The current list of ranked retrievals
|
Constructor and Description |
---|
Feedback(HashMapVector queryVector,
Retrieval[] retrievals,
InvertedIndex invertedIndex)
Create a feedback object for this query with initial retrievals to be rated
|
Modifier and Type | Method and Description |
---|---|
void |
addBad(DocumentReference docRef)
Add a document to the list of those deemed irrelevant
|
void |
addGood(DocumentReference docRef)
Add a document to the list of those deemed relevant
|
void |
getFeedback(int showNumber)
Prompt the user for feedback on this numbered retrieval
|
boolean |
haveFeedback(int showNumber)
Has the user already provided feedback on this numbered retrieval?
|
boolean |
isEmpty()
Has the user rated any documents yet?
|
HashMapVector |
newQuery()
Use the Ide_regular algorithm to compute a new revised query.
|
public static double ALPHA
public static double BETA
public static double GAMMA
public HashMapVector queryVector
public Retrieval[] retrievals
public InvertedIndex invertedIndex
public java.util.ArrayList<DocumentReference> goodDocRefs
public java.util.ArrayList<DocumentReference> badDocRefs
public Feedback(HashMapVector queryVector, Retrieval[] retrievals, InvertedIndex invertedIndex)
public void addGood(DocumentReference docRef)
public void addBad(DocumentReference docRef)
public boolean isEmpty()
public void getFeedback(int showNumber)
public boolean haveFeedback(int showNumber)
public HashMapVector newQuery()