jcolibri.extensions.textual.IE.common
Class GlossaryLinker

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

public class GlossaryLinker
extends java.lang.Object

Relates query words to cases words using a domain specific glossary.

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

Glossary Format:

[Part-of-Speech Tag]{Similarity} word1 word2 ... wordn

The 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

Field Summary
protected static java.util.ArrayList<jcolibri.extensions.textual.IE.common.GlossaryLinker.GlossaryTriple> glossary
           
 
Constructor Summary
GlossaryLinker()
           
 
Method Summary
static void LinkWithGlossary(java.util.Collection<CBRCase> cases, CBRQuery query)
          Performs the algorithm in all the ttributes of a collection of cases and a query.
static void linkWithGlossary(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 linkWithGlossary(IEText caseText, IEText queryText)
          Links two text objects using the glossary.
static void loadGlossary(java.lang.String filename)
          Load glossary reations stored in GLOSSARY_FILE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

glossary

protected static java.util.ArrayList<jcolibri.extensions.textual.IE.common.GlossaryLinker.GlossaryTriple> glossary
Constructor Detail

GlossaryLinker

public GlossaryLinker()
Method Detail

LinkWithGlossary

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


linkWithGlossary

public static void linkWithGlossary(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.


linkWithGlossary

public static void linkWithGlossary(IEText caseText,
                                    IEText queryText)
Links two text objects using the glossary.


loadGlossary

public static void loadGlossary(java.lang.String filename)
Load glossary reations stored in GLOSSARY_FILE


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