edu.washington.cs.knowitall.extractor
Enum ChunkedArgumentExtractor.Mode
java.lang.Object
java.lang.Enum<ChunkedArgumentExtractor.Mode>
edu.washington.cs.knowitall.extractor.ChunkedArgumentExtractor.Mode
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ChunkedArgumentExtractor.Mode>
- Enclosing class:
- ChunkedArgumentExtractor
public static enum ChunkedArgumentExtractor.Mode
- extends java.lang.Enum<ChunkedArgumentExtractor.Mode>
Controls the mode of an NpChunkArgumentExtractor
: the LEFT
mode makes the
extractor return noun phrase arguments to the left of the relation in the sentence, and the RIGHT
mode makes the extractor return noun phrase arguments to the right of the relation in the sentence.
- Author:
- afader
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
LEFT
public static final ChunkedArgumentExtractor.Mode LEFT
RIGHT
public static final ChunkedArgumentExtractor.Mode RIGHT
values
public static ChunkedArgumentExtractor.Mode[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ChunkedArgumentExtractor.Mode c : ChunkedArgumentExtractor.Mode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ChunkedArgumentExtractor.Mode valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null