rzo1 commented on code in PR #200: URL: https://github.com/apache/opennlp-sandbox/pull/200#discussion_r1892551223
########## opennlp-wsd/src/main/java/opennlp/tools/disambiguator/Disambiguator.java: ########## @@ -24,21 +24,29 @@ import java.util.List; /** - * A word sense disambiguator that determines which sense of a word is meant in - * a particular context. It is a classification task, where the classes are the - * different senses of the ambiguous word. Disambiguation can be achieved in - * either supervised or un-supervised approaches. A {@link Disambiguator} returns - * a sense ID. + * Describes a word sense disambiguator that determines which sense of a word is + * meant in a particular context. + * It is a classification task, where the classes are the different senses of + * the ambiguous word. Disambiguation can be achieved in either supervised or + * un-supervised approaches. A {@link Disambiguator} returns a sense ID. * <p> * <b>How it works:</b><br/> - * Just supply the context as an array of tokens and the - * index of the target word to the disambiguate method. + * Just supply the {@code context} as an array of tokens and the index of the + * {@code target word} to the disambiguate method. * <p> - * Otherwise, for multiple words, you can set a word span instead of simply one - * index. For the moment the source of sense definitions is from WordNet. + * Otherwise, for multiple words, you can set a word {@link Span} instead of + * a single target index. */ public interface Disambiguator { + /** + * Conducts disambiguation for a {@link WSDSample} context. + * + * @param sample The {@link WSDSample} containing the word and POS tags to use. Review Comment: null allowed here? -> ah unclear for most of the methods in that interface. So not an issue for now (follow up) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@opennlp.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org