annotation
Class WERandom

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

public class WERandom
extends WordExpert

Random word expert

Author:
Mateusz Kopec

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

WERandom

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

Parameters:
baseForm - base form of word
senses - word's senses
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