cic.wsd.windowing
Class NoTarget

java.lang.Object
  extended by cic.wsd.windowing.Condition
      extended by cic.wsd.windowing.NoTarget

public class NoTarget
extends Condition

This will generate a window without the target word in it.

Author:
Francisco Viveros-Jiménez

Field Summary
 
Fields inherited from class cic.wsd.windowing.Condition
name, parameters
 
Constructor Summary
NoTarget(java.lang.String parameter)
           
 
Method Summary
 boolean satisfiesCondition(AmbiguousWord target, AmbiguousWord possibleWord, java.util.ArrayList<AmbiguousWord> window)
          Function for telling if a word could be added to the window.
 
Methods inherited from class cic.wsd.windowing.Condition
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoTarget

public NoTarget(java.lang.String parameter)
         throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

satisfiesCondition

public boolean satisfiesCondition(AmbiguousWord target,
                                  AmbiguousWord possibleWord,
                                  java.util.ArrayList<AmbiguousWord> window)
Description copied from class: Condition
Function for telling if a word could be added to the window.

Specified by:
satisfiesCondition in class Condition
Parameters:
target - Word to be disambiguated.
possibleWord - Word to be added to the window.
window - Current window.
Returns:
True, if the word could be added to the window.