jcolibri.extensions.textual.IE.gate
Class GateFeaturesExtractor

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

public class GateFeaturesExtractor
extends java.lang.Object

Extract features from text using the GATE grammars in jape format. This method uses internally an ANNIETransducer object. GATE's default rules file or any other file can be loaded.
It is compatible with the generic FeaturesExtractor so they can be executed together.
For more information see the GATE tutorial.

Version:
1.0
Author:
Juan A. Recio-Garcia

Constructor Summary
GateFeaturesExtractor()
           
 
Method Summary
static void extractFeatures(CBRQuery query)
          Performs the algorithm in all the IETextGate typed attributes of a query.
static void extractFeatures(CBRQuery query, java.util.Collection<Attribute> attributes)
          Performs the algorithm in the given attributes of a query.
static void extractFeatures(java.util.Collection<CBRCase> cases)
          Performs the algorithm in all the IETextGate typed attributes of a collection of cases.
static void extractFeatures(java.util.Collection<CBRCase> cases, java.util.Collection<Attribute> attributes)
          Performs the algorithm in the given attributes of a collection of cases.
static void extractFeatures(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

GateFeaturesExtractor

public GateFeaturesExtractor()
Method Detail

extractFeatures

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


extractFeatures

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


extractFeatures

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


extractFeatures

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


extractFeatures

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