org.carrot2.source.ambient
Class AmbientDocumentSource

java.lang.Object
  extended by org.carrot2.core.ProcessingComponentBase
      extended by org.carrot2.source.ambient.FubDocumentSource
          extended by 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.


Nested Class Summary
static class AmbientDocumentSource.AmbientTopic
          All available Ambient topics.
 
Field Summary
 int results
           
 long resultsTotal
           
 AmbientDocumentSource.AmbientTopic topic
          Ambient Topic.
 
Fields inherited from class org.carrot2.source.ambient.FubDocumentSource
documents, includeDocumentsWithoutTopic, minTopicSize, query, topicIds
 
Constructor Summary
AmbientDocumentSource()
           
 
Method Summary
static String getTopicLabel(String topicId)
           
 void process()
          Performs the processing required to fulfill the request.
 
Methods inherited from class org.carrot2.source.ambient.FubDocumentSource
processInternal
 
Methods inherited from class org.carrot2.core.ProcessingComponentBase
afterProcessing, beforeProcessing, dispose, getContext, getSharedExecutor, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.carrot2.core.IProcessingComponent
afterProcessing, beforeProcessing, dispose, init
 

Field Detail

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
Constructor Detail

AmbientDocumentSource

public AmbientDocumentSource()
Method Detail

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