org.carrot2.source.ambient
Class Odp239DocumentSource
java.lang.Object
org.carrot2.core.ProcessingComponentBase
org.carrot2.source.ambient.FubDocumentSource
org.carrot2.source.ambient.Odp239DocumentSource
- All Implemented Interfaces:
- IDocumentSource, IProcessingComponent
public class Odp239DocumentSource
- extends FubDocumentSource
Serves documents from the ODP239 test set. For more details, please see:
http://credo.fub.it/odp239/.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
topic
public Odp239DocumentSource.Odp239Topic topic
- ODP239 Topic. The ODP239 Topic to load documents from.
- Attribute level:
- Basic
- Attribute group:
- Topic ID
results
public int results
resultsTotal
public long resultsTotal
Odp239DocumentSource
public Odp239DocumentSource()
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