ABL4J (Alignment Based Learning for Java) - 0.9.7

org.schwiebert.abl4j.cluster.methods
Class ABLClusterMethod

java.lang.Object
  extended by org.schwiebert.abl4j.cluster.methods.ABLClusterMethod
All Implemented Interfaces:
ClusterMethod<AblNtMap>, MergeMethod<AblNtMap>, IConfigurable

public class ABLClusterMethod
extends Object
implements ClusterMethod<AblNtMap>, MergeMethod<AblNtMap>

This class implements the clustering part of the aligning phase of ABL.

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  Logger logger
           
private  AblNtMap ntm
           
 
Constructor Summary
ABLClusterMethod()
           
 
Method Summary
 void configure(PropertiesMap properties)
           
 boolean findClusters(ITreeBank tb)
          Searches for clusters, which must be stored in a NonTerminalsMapping that will be used by a MergeMethod.
private  void findClustersInTree(ITree<?> t)
           
 AblNtMap getMapping()
          Returns the NonTerminalsMapping used by a MergeMethod for merging.
 int getNumberOfClusteredNTs()
          Returns the number of clustered NonTerminals.
 int getNumberOfUnclusteredNTs()
          Returns the number of nonterminals before merge operation was applied.
 void mergeClusters(ITreeBank tb)
          Merge-Method
private  void mergeClustersInTree(ITree<?> t)
           
 void setMapping(AblNtMap ntm)
          Sets the NonTerminalsMapping as it was created by a ClusterMethod.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private Logger logger

ntm

private AblNtMap ntm
Constructor Detail

ABLClusterMethod

public ABLClusterMethod()
Method Detail

getMapping

public AblNtMap getMapping()
Description copied from interface: ClusterMethod
Returns the NonTerminalsMapping used by a MergeMethod for merging.

Specified by:
getMapping in interface ClusterMethod<AblNtMap>
Returns:

setMapping

public void setMapping(AblNtMap ntm)
Description copied from interface: MergeMethod
Sets the NonTerminalsMapping as it was created by a ClusterMethod.

Specified by:
setMapping in interface MergeMethod<AblNtMap>

getNumberOfClusteredNTs

public int getNumberOfClusteredNTs()
Description copied from interface: MergeMethod
Returns the number of clustered NonTerminals.

Specified by:
getNumberOfClusteredNTs in interface MergeMethod<AblNtMap>
Returns:

getNumberOfUnclusteredNTs

public int getNumberOfUnclusteredNTs()
Description copied from interface: ClusterMethod
Returns the number of nonterminals before merge operation was applied.

Specified by:
getNumberOfUnclusteredNTs in interface ClusterMethod<AblNtMap>
Returns:

findClusters

public boolean findClusters(ITreeBank tb)
Description copied from interface: ClusterMethod
Searches for clusters, which must be stored in a NonTerminalsMapping that will be used by a MergeMethod.

Specified by:
findClusters in interface ClusterMethod<AblNtMap>
Returns:
true if the operation could be completed, false otherwise

findClustersInTree

private void findClustersInTree(ITree<?> t)

mergeClusters

public void mergeClusters(ITreeBank tb)
Description copied from interface: MergeMethod
Merge-Method

Specified by:
mergeClusters in interface MergeMethod<AblNtMap>

mergeClustersInTree

private void mergeClustersInTree(ITree<?> t)

configure

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

ABL4J (Alignment Based Learning for Java) - 0.9.7

© 2007 Stephan Schwiebert