cic.wsd.semcor.pruning
Class Pruning

java.lang.Object
  extended by cic.wsd.semcor.pruning.Pruning
Direct Known Subclasses:
FirstSenses, NthSenseOnly, RemoveNthSense

public abstract class Pruning
extends java.lang.Object

Generic template for pruning methods. Pruning methods are used for removing senses from words. This is used for testing the effects of disambiguating between less senses.

Author:
Francisco Viveros-Jiménez

Field Summary
(package private)  java.lang.String name
          Name of the pruning method.
(package private)  java.util.ArrayList<java.lang.String> parameters
          Parameters for the pruning method.
 
Constructor Summary
Pruning(java.lang.String parameter, java.lang.String name)
          Instantiate a new pruning method.
 
Method Summary
abstract  void prune(AmbiguousWord target)
          Method for removing senses from a word.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parameters

java.util.ArrayList<java.lang.String> parameters
Parameters for the pruning method.


name

java.lang.String name
Name of the pruning method. Child classed should must set a value.

Constructor Detail

Pruning

public Pruning(java.lang.String parameter,
               java.lang.String name)
        throws java.lang.Exception
Instantiate a new pruning method.

Parameters:
parameter - Parameters for the pruning method.
name - Name of the pruning method.
Throws:
java.lang.Exception
Method Detail

prune

public abstract void prune(AmbiguousWord target)
Method for removing senses from a word.

Parameters:
target - Word to be pruned.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object