Package: concept - 11791-04/project-team04 GitHub Wiki

Concept Pseudo-Relevance Feedback

All classes related to the production of pseudo-relevance feedback from queries.
Sub-packages:

  • concept.prf

Class: DocumentPseudoRelevantFeedback

This class is used to generate pseudo-relevance feedback for document queries to the GoPubMed Web API. Its constructor takes no arguments and creates its own connection to the API.

Method: getPRF(List<Document> initialResults) returns List<Document>

This is the main PRF function which makes a call to a recursive function which produces PRF for a specified number of iterations. It is passed a list of Document objects and parses the results to generate PRF, which it then uses to query the API. This is not currently being used by any classes.


Class: FindingPseudoRelevantFeedback

This class is used to generate pseudo-relevance feedback for concept queries to the GoPubMed Web API. Its constructor takes no arguments and creates its own connection to the API.

Method: getPRF(List<Finding> initialResults) returns List<Finding>

This is the main PRF function which makes a call to a recursive function which produces PRF for a specified number of iterations. It is passed a list of Finding objects and parses the results to generate PRF, which it then queries the API with again to create a new list of Finding objects.


Class: PseudoRelevanceFeedbackFactory

This class is simply a factory for PRF classes. It does not delegate anything to sub-classes and just calls the constructor but is still a one-stop-shop for PRF.

Method: getFindingPseudoRelevanceFeedback() returns FindingPseudoRelevanceFeedback

Vends a FindingPseudoRelevanceFeedback object. Method: getDocumentPseudoRelevanceFeedback() returns DocumentPseudoRelevanceFeedback

Vends a DocumentPseudoRelevanceFeedback object.


Class: QueryThingy

This class is used to do funny things to queries.

Method: playWithQuery(String query) returns String

Takes a String, does word count frequencies and stemming, then returns the top words. Useful when you have long queries. Not currently used by any classes, but easily extensible.


⚠️ **GitHub.com Fallback** ⚠️