annotation
Class WordExpert

java.lang.Object
  extended by annotation.WordExpert
Direct Known Subclasses:
WELesk, WEMFS, WERandom

public abstract class WordExpert
extends java.lang.Object

Expert which have the knowledge of disambiguation of a chosen word.

Author:
Mateusz Kopec

Constructor Summary
WordExpert(java.lang.String baseForm, java.util.Collection<? extends corpusapi.Sense> senses)
          Constructor
 
Method Summary
abstract  corpusapi.Sense disambiguate(Context context)
          Returns chosen sense of the word in context
abstract  java.lang.String getParamString()
          Returns string representation of the method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordExpert

public WordExpert(java.lang.String baseForm,
                  java.util.Collection<? extends corpusapi.Sense> senses)
Constructor

Parameters:
baseForm - base form of the word
senses - word's senses
Method Detail

disambiguate

public abstract corpusapi.Sense disambiguate(Context context)
Returns chosen sense of the word in context

Parameters:
context - context
Returns:
sense chosen by word expert

getParamString

public abstract java.lang.String getParamString()
Returns string representation of the method

Returns:
representation