annotation
Class WEMFS

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

public class WEMFS
extends WordExpert

MFS word expert

Author:
Mateusz Kopec

Constructor Summary
WEMFS(java.lang.String baseForm, java.util.Collection<? extends corpusapi.Sense> senses, java.lang.String answerId)
          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

WEMFS

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

Parameters:
baseForm - base form of the word
senses - senses of this word
answerId - most freqent sense id
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