jcolibri.extensions.textual.IE.opennlp
Class OpennlpMainNamesExtractor

java.lang.Object
  extended by jcolibri.extensions.textual.IE.opennlp.OpennlpMainNamesExtractor

public class OpennlpMainNamesExtractor
extends java.lang.Object

Identifies the tokens that are main names in the sencence using a Maximum entrophy algorithm. The "isMainName" flag of the Token object is activated if a token is a main name.

Version:
2.0
Author:
Juan A. Recio-Garcia

Constructor Summary
OpennlpMainNamesExtractor()
           
 
Method Summary
static void extractMainNames(CBRQuery query)
          Performs the algorithm in all the IETextOpenNLP typed attributes of a query.
static void extractMainNames(CBRQuery query, java.util.Collection<Attribute> attributes)
          Performs the algorithm in the given attributes of a query.
static void extractMainNames(java.util.Collection<CBRCase> cases)
          Performs the algorithm in all the IETextOpenNLP typed attributes of a collection of cases.
static void extractMainNames(java.util.Collection<CBRCase> cases, java.util.Collection<Attribute> attributes)
          Performs the algorithm in the given attributes of a collection of cases.
static void extractMainNames(IETextOpenNLP text)
          Performs the algorithm in a given IETextOpenNLP object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpennlpMainNamesExtractor

public OpennlpMainNamesExtractor()
Method Detail

extractMainNames

public static void extractMainNames(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 IETextOpenNLP objects.


extractMainNames

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


extractMainNames

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


extractMainNames

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


extractMainNames

public static void extractMainNames(IETextOpenNLP text)
Performs the algorithm in a given IETextOpenNLP object


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