org.cogroo.entities
Enum LexemeTypes

java.lang.Object
  extended by java.lang.Enum<LexemeTypes>
      extended by org.cogroo.entities.LexemeTypes
All Implemented Interfaces:
Serializable, Comparable<LexemeTypes>

public enum LexemeTypes
extends Enum<LexemeTypes>

[Development] Describe the possible classification of a lexeme: word, compound word, punctuation mark, other marks, number, hyphen.
It is required only while performing Corpus sentence realization (from corpus notation to plain text).

Author:
William Colen

Enum Constant Summary
ANOTHER_MARK
          Things like --
CLOSING_PUNCTUATION_MARK
          Opening: The "new
COMPOUND_WORD_SEQUENCE
           
HYPHEN
           
NUMBER
           
OPENING_PUNCTUATION_MARK
          Closing: new old"
WORD
           
 
Method Summary
static LexemeTypes valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LexemeTypes[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

WORD

public static final LexemeTypes WORD

COMPOUND_WORD_SEQUENCE

public static final LexemeTypes COMPOUND_WORD_SEQUENCE

OPENING_PUNCTUATION_MARK

public static final LexemeTypes OPENING_PUNCTUATION_MARK
Closing: new old"

normal punctuation: It is it, isn't it?


CLOSING_PUNCTUATION_MARK

public static final LexemeTypes CLOSING_PUNCTUATION_MARK
Opening: The "new


ANOTHER_MARK

public static final LexemeTypes ANOTHER_MARK
Things like --


NUMBER

public static final LexemeTypes NUMBER

HYPHEN

public static final LexemeTypes HYPHEN
Method Detail

values

public static LexemeTypes[] 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 (LexemeTypes c : LexemeTypes.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static LexemeTypes 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 name
NullPointerException - if the argument is null


Copyright © 2012-2013 CoGrOO. All Rights Reserved.