ABL4J (Alignment Based Learning for Java) - 0.9.7

org.schwiebert.abl4j.cluster
Class Cluster<NTM extends NonTerminalsMapping>

java.lang.Object
  extended by org.schwiebert.abl4j.cluster.Cluster<NTM>
All Implemented Interfaces:
IAblComponent, IConfigurable

public class Cluster<NTM extends NonTerminalsMapping>
extends Object
implements IAblComponent

This class implements the clustering part of the aligning phase.

Author:
Menno van Zaanen (menno@ics.mq.edu.au) (original C++ Version), Jeroen Geertzen (j.geertzen@uvt.nl) (modifications in C++ Version), Stephan Schwiebert (sschwieb@spinfo.uni-koeln.de) (Java-Implementation)

Field Summary
private  ClusterMethod<NTM> clusterMethod
           
private  Logger logger
           
private  MergeMethod<NTM> mergeMethod
           
private  ITreeBank tb
           
 
Constructor Summary
Cluster()
           
 
Method Summary
 void configure(PropertiesMap properties)
           
 void execute(ITreeBank treeBank)
           
 int getNumberOfUniqueNTInput()
          Returns the number of unique NonTerminals in input
 int getNumberOfUniqueNTOutput()
          Returns the number of unique NonTerminals in output
 ITreeBank getTreebank()
          Returns the ITreeBank
 int size()
          Returns the size of the treebank
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tb

private ITreeBank tb

logger

private Logger logger

clusterMethod

private ClusterMethod<NTM extends NonTerminalsMapping> clusterMethod

mergeMethod

private MergeMethod<NTM extends NonTerminalsMapping> mergeMethod
Constructor Detail

Cluster

public Cluster()
Method Detail

configure

public void configure(PropertiesMap properties)
               throws InvalidConfigurationException
Specified by:
configure in interface IConfigurable
Throws:
InvalidConfigurationException

execute

public void execute(ITreeBank treeBank)
Specified by:
execute in interface IAblComponent

size

public int size()
Returns the size of the treebank

Returns:

getTreebank

public ITreeBank getTreebank()
Returns the ITreeBank

Returns:

getNumberOfUniqueNTInput

public int getNumberOfUniqueNTInput()
Returns the number of unique NonTerminals in input

Returns:

getNumberOfUniqueNTOutput

public int getNumberOfUniqueNTOutput()
Returns the number of unique NonTerminals in output

Returns:

ABL4J (Alignment Based Learning for Java) - 0.9.7

© 2007 Stephan Schwiebert