jcolibri.extensions.textual.IE.gate
Class GatePhrasesExtractor

java.lang.Object
  extended by jcolibri.extensions.textual.IE.gate.GatePhrasesExtractor

public class GatePhrasesExtractor
extends java.lang.Object

Phrases extractor based on the Gate Gazetteer. It is compatible with the generic PhrasesExtractor so they can be executed together. GATE's default rules file or any other file can be loaded.
For more information see the GATE tutorial.

Version:
1.0
Author:
Juan A. Recio-Garcia

Constructor Summary
GatePhrasesExtractor()
           
 
Method Summary
static void extractPhrases(CBRQuery query)
          Performs the algorithm in all the IETextGate typed attributes of a query.
static void extractPhrases(CBRQuery query, java.util.Collection<Attribute> attributes)
          Performs the algorithm in the given attributes of a query.
static void extractPhrases(java.util.Collection<CBRCase> cases)
          Performs the algorithm in all the IETextGate typed attributes of a collection of cases.
static void extractPhrases(java.util.Collection<CBRCase> cases, java.util.Collection<Attribute> attributes)
          Performs the algorithm in the given attributes of a collection of cases.
static void extractPhrases(IETextGate text)
          Performs the algorithm in a given IETextGate object
static void loadDefaultRules()
           
static void loadRules(java.lang.String filename)
          Loads a rules file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GatePhrasesExtractor

public GatePhrasesExtractor()
Method Detail

extractPhrases

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


extractPhrases

public static void extractPhrases(CBRQuery query,
                                  java.util.Collection<Attribute> attributes)
Performs the algorithm in the given attributes of a query. These attributes must be IETextGate objects.


extractPhrases

public static void extractPhrases(java.util.Collection<CBRCase> cases)
Performs the algorithm in all the IETextGate typed attributes of a collection of cases.


extractPhrases

public static void extractPhrases(CBRQuery query)
Performs the algorithm in all the IETextGate typed attributes of a query.


extractPhrases

public static void extractPhrases(IETextGate text)
Performs the algorithm in a given IETextGate object


loadDefaultRules

public static void loadDefaultRules()

loadRules

public static void loadRules(java.lang.String filename)
Loads a rules file


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