|
ABL4J (Alignment Based Learning for Java) - 0.9.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.schwiebert.abl4j.cluster.methods.ABLClusterMethod
public class ABLClusterMethod
This class implements the clustering part of the aligning phase of ABL.
| 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 |
|---|
private Logger logger
private AblNtMap ntm
| Constructor Detail |
|---|
public ABLClusterMethod()
| Method Detail |
|---|
public AblNtMap getMapping()
ClusterMethodNonTerminalsMapping used by a
MergeMethod for merging.
getMapping in interface ClusterMethod<AblNtMap>public void setMapping(AblNtMap ntm)
MergeMethodNonTerminalsMapping as it was
created by a ClusterMethod.
setMapping in interface MergeMethod<AblNtMap>public int getNumberOfClusteredNTs()
MergeMethodNonTerminals.
getNumberOfClusteredNTs in interface MergeMethod<AblNtMap>public int getNumberOfUnclusteredNTs()
ClusterMethod
getNumberOfUnclusteredNTs in interface ClusterMethod<AblNtMap>public boolean findClusters(ITreeBank tb)
ClusterMethodNonTerminalsMapping that will be used by
a MergeMethod.
findClusters in interface ClusterMethod<AblNtMap>private void findClustersInTree(ITree<?> t)
public void mergeClusters(ITreeBank tb)
MergeMethod
mergeClusters in interface MergeMethod<AblNtMap>private void mergeClustersInTree(ITree<?> t)
public void configure(PropertiesMap properties)
configure in interface IConfigurable
|
ABL4J (Alignment Based Learning for Java) - 0.9.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||