Package edu.stanford.nlp.naturalli
Enum Operator
- java.lang.Object
-
- java.lang.Enum<Operator>
-
- edu.stanford.nlp.naturalli.Operator
-
- All Implemented Interfaces:
Serializable,Comparable<Operator>
public enum Operator extends Enum<Operator>
A collection of quantifiers. This is the exhaustive list of quantifiers our system knows about.- Author:
- Gabor Angeli
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description NaturalLogicRelationdeleteRelationstatic Set<String>GLOSSESMonotonicityobjMonoMonotonicityTypeobjTypestatic Set<String>quantifierGlossesMonotonicitysubjMonoMonotonicityTypesubjTypeStringsurfaceFormstatic List<Operator>valuesByLengthDescAn ordered list of the known operators, by token length (descending).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<Operator>fromString(String word)booleanisUnary()static Pair<Monotonicity,MonotonicityType>monoFromString(String mono)static StringmonotonicitySignature(Monotonicity mono, MonotonicityType type)static OperatorvalueOf(String name)Returns the enum constant of this type with the specified name.static Operator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final Operator ALL
-
EVERY
public static final Operator EVERY
-
ANY
public static final Operator ANY
-
EACH
public static final Operator EACH
-
THE_LOT_OF
public static final Operator THE_LOT_OF
-
ALL_OF
public static final Operator ALL_OF
-
EACH_OF
public static final Operator EACH_OF
-
FOR_ALL
public static final Operator FOR_ALL
-
FOR_EVERY
public static final Operator FOR_EVERY
-
FOR_EACH
public static final Operator FOR_EACH
-
EVERYONE
public static final Operator EVERYONE
-
NUM
public static final Operator NUM
-
NUM_NUM
public static final Operator NUM_NUM
-
NUM_NUM_NUM
public static final Operator NUM_NUM_NUM
-
NUM_NUM_NUM_NUM
public static final Operator NUM_NUM_NUM_NUM
-
FEW
public static final Operator FEW
-
IMPLICIT_NAMED_ENTITY
public static final Operator IMPLICIT_NAMED_ENTITY
-
NO
public static final Operator NO
-
NEITHER
public static final Operator NEITHER
-
NO_ONE
public static final Operator NO_ONE
-
NOBODY
public static final Operator NOBODY
-
NOT
public static final Operator NOT
-
BUT
public static final Operator BUT
-
EXCEPT
public static final Operator EXCEPT
-
UNARY_NO
public static final Operator UNARY_NO
-
UNARY_NOT
public static final Operator UNARY_NOT
-
UNARY_NO_ONE
public static final Operator UNARY_NO_ONE
-
UNARY_NT
public static final Operator UNARY_NT
-
UNARY_BUT
public static final Operator UNARY_BUT
-
UNARY_EXCEPT
public static final Operator UNARY_EXCEPT
-
GENERAL_NEG_POLARITY
public static final Operator GENERAL_NEG_POLARITY
-
SOME
public static final Operator SOME
-
SEVERAL
public static final Operator SEVERAL
-
EITHER
public static final Operator EITHER
-
A
public static final Operator A
-
THE
public static final Operator THE
-
LESS_THAN
public static final Operator LESS_THAN
-
SOME_OF
public static final Operator SOME_OF
-
ONE_OF
public static final Operator ONE_OF
-
AT_LEAST
public static final Operator AT_LEAST
-
A_FEW
public static final Operator A_FEW
-
AT_LEAST_A_FEW
public static final Operator AT_LEAST_A_FEW
-
THERE_BE
public static final Operator THERE_BE
-
THERE_BE_A_FEW
public static final Operator THERE_BE_A_FEW
-
THERE_EXIST
public static final Operator THERE_EXIST
-
NUM_OF
public static final Operator NUM_OF
-
NOT_ALL
public static final Operator NOT_ALL
-
NOT_EVERY
public static final Operator NOT_EVERY
-
MOST
public static final Operator MOST
-
MORE
public static final Operator MORE
-
MANY
public static final Operator MANY
-
ENOUGH
public static final Operator ENOUGH
-
MORE_THAN
public static final Operator MORE_THAN
-
LOTS_OF
public static final Operator LOTS_OF
-
PLENTY_OF
public static final Operator PLENTY_OF
-
HEAPS_OF
public static final Operator HEAPS_OF
-
A_LOAD_OF
public static final Operator A_LOAD_OF
-
LOADS_OF
public static final Operator LOADS_OF
-
TONS_OF
public static final Operator TONS_OF
-
BOTH
public static final Operator BOTH
-
JUST_NUM
public static final Operator JUST_NUM
-
ONLY_NUM
public static final Operator ONLY_NUM
-
AT_MOST_NUM
public static final Operator AT_MOST_NUM
-
-
Field Detail
-
valuesByLengthDesc
public static final List<Operator> valuesByLengthDesc
An ordered list of the known operators, by token length (descending). This ensures that we're matching the widest scoped operator.
-
surfaceForm
public final String surfaceForm
-
subjMono
public final Monotonicity subjMono
-
subjType
public final MonotonicityType subjType
-
objMono
public final Monotonicity objMono
-
objType
public final MonotonicityType objType
-
deleteRelation
public final NaturalLogicRelation deleteRelation
-
-
Method Detail
-
values
public static Operator[] 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 (Operator c : Operator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Operator valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isUnary
public boolean isUnary()
-
monoFromString
public static Pair<Monotonicity,MonotonicityType> monoFromString(String mono)
-
monotonicitySignature
public static String monotonicitySignature(Monotonicity mono, MonotonicityType type)
-
-