jcolibri.extensions.textual.IE.common
Class DomainTopicClassifier

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

public class DomainTopicClassifier
extends java.lang.Object

Classifies textual objects with a topic depending on the features and phrases.
This method uses a configuration file with rules following the syntaxis:

[Topic] <FeatureName,FeatureValue> <FeatureName,FeatureValue> ... <Phrase> <Phrase>

where:

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
DomainTopicClassifier()
           
 
Method Summary
static void classifyWithTopic(CBRQuery query)
          Performs the algorithm in all the attributes of a query These attributes must be IEText objects.
static void classifyWithTopic(CBRQuery query, java.util.Collection<Attribute> attributes)
          Performs the algorithm in the given attributes of a query.
static void classifyWithTopic(java.util.Collection<CBRCase> cases)
          Performs the algorithm in all the attributes of a collection of cases These attributes must be IEText objects.
static void classifyWithTopic(java.util.Collection<CBRCase> cases, java.util.Collection<Attribute> attributes)
          Performs the algorithm in the given attributes of a collection of cases.
static void classifyWithTopic(IEText text)
          Performs the algorithm in a given IEText object
static void loadRules(java.lang.String filename)
          Load topic classification rules file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainTopicClassifier

public DomainTopicClassifier()
Method Detail

classifyWithTopic

public static void classifyWithTopic(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 IEText objects.


classifyWithTopic

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


classifyWithTopic

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


classifyWithTopic

public static void classifyWithTopic(CBRQuery query)
Performs the algorithm in all the attributes of a query These attributes must be IEText objects.


classifyWithTopic

public static void classifyWithTopic(IEText text)
Performs the algorithm in a given IEText object


loadRules

public static void loadRules(java.lang.String filename)
Load topic classification rules file.


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