Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

recoinx.clef
Class CLEFTopicTranslator  view CLEFTopicTranslator download CLEFTopicTranslator.java

java.lang.Object
  extended byrecoin.group.ComponentWorker
      extended byrecoinx.clef.CLEFTopicTranslator

public class CLEFTopicTranslator
extends recoin.group.ComponentWorker

The CLEFTopicTranslator is a PreQuery ComponentWorker class that takes the English topic of a CLEFQuery and uses pre-translated files to fill the CLEFQuery's translated topics.

Version:
0.2.9

Nested Class Summary
protected  class CLEFTopicTranslator.TopicTranslatorRunnable
          The TopicTranslatorRunnable class implements the special behavior to translate the english topic of a CLEFQuery into German, Spanish and English and complete the CLEFQuery.
 
Field Summary
(package private) static org.apache.log4j.Logger logger
          The logger of this class.
private  java.lang.String stopwordPath
          The path to the directory where the stopword files can be found.
private  java.lang.String translationPath
          The path to the directory where the translations can be found.
private  org.dom4j.io.SAXReader xmlReader
          A SAXReader to read XML files.
 
Fields inherited from class recoin.group.ComponentWorker
component
 
Constructor Summary
CLEFTopicTranslator()
          Creates a new CLEFTopicTranslator.
 
Method Summary
 recoin.group.ComponentRunnable createComponentRunnable(recoin.container.RetrievalContainer container)
          Creates and returns a new TopicTranslatorRunnable with the specified RetrievalContainer.
 recoin.group.ComponentRunnable createComponentRunnable(recoin.container.RetrievalContainer container, java.util.Vector supports)
          Creates and returns a new TopicTranslatorRunnable with the specified RetrievalContainer and Vector.
 recoin.group.ComponentRunnable createComponentRunnable(recoin.container.RetrievalContainer container, java.util.Vector supports, recoin.group.ComponentRunnable runnable)
          Creates and returns a new TopicTranslatorRunnable with the specified RetrievalContainer, Vector and ComponentRunnable.
 void initiate(recoin.group.Component c)
          Initiates this CLEFTopicTranslator using the specified Component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger
The logger of this class.


translationPath

private java.lang.String translationPath
The path to the directory where the translations can be found.


stopwordPath

private java.lang.String stopwordPath
The path to the directory where the stopword files can be found.


xmlReader

private org.dom4j.io.SAXReader xmlReader
A SAXReader to read XML files.

Constructor Detail

CLEFTopicTranslator

public CLEFTopicTranslator()
Creates a new CLEFTopicTranslator.

Method Detail

initiate

public void initiate(recoin.group.Component c)
              throws recoin.exception.InitiationException
Initiates this CLEFTopicTranslator using the specified Component.


createComponentRunnable

public recoin.group.ComponentRunnable createComponentRunnable(recoin.container.RetrievalContainer container)
Creates and returns a new TopicTranslatorRunnable with the specified RetrievalContainer.


createComponentRunnable

public recoin.group.ComponentRunnable createComponentRunnable(recoin.container.RetrievalContainer container,
                                                              java.util.Vector supports)
Creates and returns a new TopicTranslatorRunnable with the specified RetrievalContainer and Vector.


createComponentRunnable

public recoin.group.ComponentRunnable createComponentRunnable(recoin.container.RetrievalContainer container,
                                                              java.util.Vector supports,
                                                              recoin.group.ComponentRunnable runnable)
Creates and returns a new TopicTranslatorRunnable with the specified RetrievalContainer, Vector and ComponentRunnable.