|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMWEDetector
A detector for multi-word expressions. Classes implementing this interface can be used to find the multi-word expressions in a sentence.
Method Summary | ||
---|---|---|
|
detect(List<T> sentence)
Given a list of tokens, the detector searches for the MWEs in the list. |
Method Detail |
---|
<T extends IToken> List<IMWE<T>> detect(List<T> sentence)
IMWE
objects representing these
multi-word expressions. The method returns an empty list if no MWEs are
found; the method should never return null
.
T
- the type of the tokens in the sentencesentence
- a sentence which the detector should search for multi-word
expressions.
IMWE
objects representing the multi-word
expressions found in the sentence. Returns an empty list if no
multi-word expressions are found; never returns null
NullPointerException
- if the specified sentence is null
, or contains
null
IllegalArgumentException
- if the specified sentence is empty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |