edu.mit.jmwe.detect
Class HasMWEDetector
java.lang.Object
edu.mit.jmwe.detect.HasMWEDetector
- All Implemented Interfaces:
- IHasMWEDetector
- Direct Known Subclasses:
- Continuous, FilterByScore, InflectionLookup, InflectionPattern, InOrder, LMLR, NoInflection, NoProperNouns, ResolveByScore
public abstract class HasMWEDetector
- extends Object
- implements IHasMWEDetector
Abstract base class for MWE Detectors that wrap, and constraint the output
of, other MWE detectors.
- Since:
- jMWE 1.0.0
- Version:
- $Id$
- Author:
- M.A. Finlayson
Constructor Summary |
HasMWEDetector(IMWEDetector detector)
Constructs a new MWE detector constraint that wraps the specified MWE Detector. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HasMWEDetector
public HasMWEDetector(IMWEDetector detector)
- Constructs a new MWE detector constraint that wraps the specified MWE Detector.
- Parameters:
detector
- the detector wrapped by this object
- Throws:
NullPointerException
- if the specified detector is null
- Since:
- jMWE 1.0.0
getWrappedDetector
public IMWEDetector getWrappedDetector()
- Description copied from interface:
IHasMWEDetector
- Returns the MWE detector associated with this contraint detector.
- Specified by:
getWrappedDetector
in interface IHasMWEDetector
- Returns:
- the MWE detector associated with this object
detect
public <T extends IToken> List<IMWE<T>> detect(List<T> sentence)
Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.