|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcic.wsd.windowing.Condition
cic.wsd.windowing.IsUseful
public class IsUseful
Only words that allow the disambiguation algorithm to return an answers will be selected.
Field Summary | |
---|---|
(package private) WSDAlgorithm |
algorithm
|
Fields inherited from class cic.wsd.windowing.Condition |
---|
name, parameters |
Constructor Summary | |
---|---|
IsUseful(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 |
Field Detail |
---|
WSDAlgorithm algorithm
Constructor Detail |
---|
public IsUseful(java.lang.String parameter) throws java.lang.Exception
parameter
- Disambiguation algorithm to be tested.
java.lang.Exception
Method Detail |
---|
public boolean satisfiesCondition(AmbiguousWord target, AmbiguousWord possibleWord, java.util.ArrayList<AmbiguousWord> window)
Condition
satisfiesCondition
in class Condition
target
- Word to be disambiguated.possibleWord
- Word to be added to the window.window
- Current window.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |