edu.mit.jmwe.detect
Interface IMWEDetector

All Known Subinterfaces:
IMWEDetectorFilter, IMWEDetectorResolver
All Known Implementing Classes:
Baseline, CompositeDetector, Consecutive, ConstrainLength, Continuous, Exhaustive, FilterByScore, InflectionLookup, InflectionPattern, InOrder, Leftmost, LeskAtLeast, LMLR, Longest, MoreFrequentAsMWE, NoInflection, NoProperNouns, Perfect, ProperNouns, ResolveByScore, SmallestVariance, StopWords, TrulyExhaustive

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.

Since:
jMWE 1.0.0
Version:
$Id: IMWEDetector.java 598 2011-05-06 03:33:34Z markaf $
Author:
N. Kulkarni, M.A. Finlayson

Method Summary
<T extends IToken>
List<IMWE<T>>
detect(List<T> sentence)
          Given a list of tokens, the detector searches for the MWEs in the list.
 

Method Detail

detect

<T extends IToken> List<IMWE<T>> detect(List<T> sentence)
Given a list of tokens, the detector searches for the MWEs in the list. It returns a set of IMWE objects representing these multi-word expressions. The method returns an empty list if no MWEs are found; the method should never return null.

Type Parameters:
T - the type of the tokens in the sentence
Parameters:
sentence - a sentence which the detector should search for multi-word expressions.
Returns:
a list of 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
Throws:
NullPointerException - if the specified sentence is null, or contains null
IllegalArgumentException - if the specified sentence is empty
Since:
jMWE 1.0.0


Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.