cic.wsd.semcor.pruning
Class NthSenseOnly

java.lang.Object
  extended by cic.wsd.semcor.pruning.Pruning
      extended by cic.wsd.semcor.pruning.NthSenseOnly

public class NthSenseOnly
extends Pruning

Pruning method for keeping only the Nth sense.

Author:
Francisco Viveros-Jiménez

Field Summary
 
Fields inherited from class cic.wsd.semcor.pruning.Pruning
name, parameters
 
Constructor Summary
NthSenseOnly(java.lang.String parameter)
           
 
Method Summary
 void prune(AmbiguousWord target)
          Method for removing senses from a word.
 
Methods inherited from class cic.wsd.semcor.pruning.Pruning
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NthSenseOnly

public NthSenseOnly(java.lang.String parameter)
             throws java.lang.Exception
Parameters:
parameter - N value to be used.
Throws:
java.lang.Exception
Method Detail

prune

public void prune(AmbiguousWord target)
Description copied from class: Pruning
Method for removing senses from a word.

Specified by:
prune in class Pruning
Parameters:
target - Word to be pruned.