annotation
Class WELesk

java.lang.Object
  extended by annotation.WordExpert
      extended by annotation.WELesk

public class WELesk
extends WordExpert

Word expert lesk-based.

Author:
Mateusz Kopec

Constructor Summary
WELesk(java.lang.String baseForm, java.util.Collection<? extends corpusapi.Sense> senses, java.lang.String params, TakipiManager takipi)
          Constructor.
 
Method Summary
 corpusapi.Sense disambiguate(Context context)
          Returns chosen sense of the word in context
 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

WELesk

public WELesk(java.lang.String baseForm,
              java.util.Collection<? extends corpusapi.Sense> senses,
              java.lang.String params,
              TakipiManager takipi)
       throws java.lang.Exception
Constructor.

Parameters:
baseForm - word base form
senses - senses of this word
params - parameters of method
takipi - takipi manager to takipize glosses
Throws:
java.lang.Exception
Method Detail

disambiguate

public corpusapi.Sense disambiguate(Context context)
Description copied from class: WordExpert
Returns chosen sense of the word in context

Specified by:
disambiguate in class WordExpert
Parameters:
context - context
Returns:
sense chosen by word expert

getParamString

public java.lang.String getParamString()
Description copied from class: WordExpert
Returns string representation of the method

Specified by:
getParamString in class WordExpert
Returns:
representation