edu.mit.jmwe.harness
Interface IAnswerKey
- All Known Implementing Classes:
- ConcordanceAnswerKey
public interface IAnswerKey
Classes implementing this interface find the correct multi-word expressions
for an IMarkedSentence
object. The resulting list of multi-word
expressions is used as an answer key that other test lists can be compared
against.
- Since:
- jMWE 1.0.0
- Version:
- $Id: IAnswerKey.java 612 2011-05-06 20:22:54Z markaf $
- Author:
- M.A. Finlayson, N. Kulkarni
getAnswers
<T extends IToken> List<IMWE<T>> getAnswers(IMarkedSentence<T> sentence)
- Gets the answer multi-word expressions from the given sentence. If there
are no answers, should return the empty list. Should never return
null
.
- Type Parameters:
T
- type of tokens that are contained in the sentence.- Parameters:
sentence
- the sentence for which the answers should be retrieved May not
be null
.
- Returns:
- a non-null, possibly empty list of answer multi-word expressions
for the given sentence
- Throws:
NullPointerException
- if the unit is null
- Since:
- jMWE 1.0.0
Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.