jcolibri.extensions.textual.IE.common
Class ThesaurusLinker

java.lang.Object
  extended by jcolibri.extensions.textual.IE.common.ThesaurusLinker

public class ThesaurusLinker
extends java.lang.Object

Relates query words to cases words using WordNet. Words are related if belong to the same synset.

Tokens are related using a list of WeightedRelation objects. These relations are stored in each Token instance.

First version was developed at: Robert Gordon University - Aberdeen & Facultad Informática, Universidad Complutense de Madrid (GAIA)

Version:
2.0
Author:
Juan A. Recio-Garcia

Constructor Summary
ThesaurusLinker()
           
 
Method Summary
static void linkWithWordNet(java.util.Collection<CBRCase> cases, CBRQuery query)
          Performs the algorithm in all the attributes of a collection of cases and a query.
static void linkWithWordNet(java.util.Collection<CBRCase> cases, CBRQuery query, java.util.Collection<Attribute> attributes)
          Performs the algorithm in the given attributes of a collection of cases and a query.
static void linkWithWordNet(IEText caseText, IEText queryText)
          Links two texts using wordNet.
static void loadWordNet()
          Initializes WordNet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThesaurusLinker

public ThesaurusLinker()
Method Detail

linkWithWordNet

public static void linkWithWordNet(java.util.Collection<CBRCase> cases,
                                   CBRQuery query)
Performs the algorithm in all the attributes of a collection of cases and a query. These attributes must be IEText objects.


linkWithWordNet

public static void linkWithWordNet(java.util.Collection<CBRCase> cases,
                                   CBRQuery query,
                                   java.util.Collection<Attribute> attributes)
Performs the algorithm in the given attributes of a collection of cases and a query. These attributes must be IEText objects.


linkWithWordNet

public static void linkWithWordNet(IEText caseText,
                                   IEText queryText)
Links two texts using wordNet. It only relates words in the same sysnset.


loadWordNet

public static void loadWordNet()
Initializes WordNet.


GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es