|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ir.vsr.Feedback
public class Feedback
Gets and stores information about relevance feedback from the user and computes an updated query based on original query and retrieved documents that are rated relevant and irrelevant.
Field Summary | |
---|---|
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 Summary | |
---|---|
Feedback(HashMapVector queryVector,
Retrieval[] retrievals,
InvertedIndex invertedIndex)
Create a feedback object for this query with initial retrievals to be rated |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public Feedback(HashMapVector queryVector, Retrieval[] retrievals, InvertedIndex invertedIndex)
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |