org.carrot2.source.ambient
Class AmbientDocumentSource
java.lang.Object
org.carrot2.core.ProcessingComponentBase
org.carrot2.source.ambient.FubDocumentSource
org.carrot2.source.ambient.AmbientDocumentSource
- All Implemented Interfaces:
- IDocumentSource, IProcessingComponent
public class AmbientDocumentSource
- extends FubDocumentSource
Serves documents from the Ambient test set. Ambient (AMBIgous ENTries) is a data set
designed for evaluating subtopic information retrieval. It consists of 44 topics, each
with a set of subtopics and a list of 100 ranked documents. For more information,
please see Ambient home page.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
topic
public AmbientDocumentSource.AmbientTopic topic
- Ambient Topic. The Ambient Topic to load documents from.
- Attribute level:
- Basic
- Attribute group:
- Topic ID
results
public int results
resultsTotal
public long resultsTotal
AmbientDocumentSource
public AmbientDocumentSource()
process
public void process()
throws ProcessingException
- Description copied from interface:
IProcessingComponent
- Performs the processing required to fulfill the request. This method is called once
per request.
- Specified by:
process in interface IProcessingComponent- Overrides:
process in class ProcessingComponentBase
- Throws:
ProcessingException - when processing failed. If thrown, the
IProcessingComponent.afterProcessing() method will be called and the component will
be ready to accept further requests or to be disposed of. Finally, the
exception will be rethrown from the controller method that caused the
component to perform processing.
getTopicLabel
public static String getTopicLabel(String topicId)
Copyright (c) Dawid Weiss, Stanislaw Osinski