Enum Class SpeechPart

java.lang.Object
java.lang.Enum<SpeechPart>
com.walker.semantics.SpeechPart
所有已实现的接口:
Serializable, Comparable<SpeechPart>, Constable

public enum SpeechPart extends Enum<SpeechPart>
描述:词性枚举定义(part of speech)
作者:
时克英
  • 枚举常量详细资料

    • A_ADJECTIVE

      public static final SpeechPart A_ADJECTIVE
    • B_DISTIN

      public static final SpeechPart B_DISTIN
    • C_CONJUNCTION

      public static final SpeechPart C_CONJUNCTION
    • D_ADVERB

      public static final SpeechPart D_ADVERB
    • E_INTERJECTION

      public static final SpeechPart E_INTERJECTION
    • F_POSITION

      public static final SpeechPart F_POSITION
    • M_NUMBER

      public static final SpeechPart M_NUMBER
    • MQ_NUMBER_UNIT

      public static final SpeechPart MQ_NUMBER_UNIT
    • N_NAME

      public static final SpeechPart N_NAME
    • NS_PLACENAME

      public static final SpeechPart NS_PLACENAME
    • NT_NAMETIME

      public static final SpeechPart NT_NAMETIME
    • NZ_NAMESTATUS

      public static final SpeechPart NZ_NAMESTATUS
    • O_ANO

      public static final SpeechPart O_ANO
    • P_PREPOSITION

      public static final SpeechPart P_PREPOSITION
    • Q_QUANTIFIER

      public static final SpeechPart Q_QUANTIFIER
    • QV

      public static final SpeechPart QV
    • R_PRONOUN

      public static final SpeechPart R_PRONOUN
    • RYS

      public static final SpeechPart RYS
    • S_PLACE

      public static final SpeechPart S_PLACE
    • T_TIME

      public static final SpeechPart T_TIME
    • U_AUXILIARY

      public static final SpeechPart U_AUXILIARY
    • V_VERB

      public static final SpeechPart V_VERB
    • VN_VERBNAME

      public static final SpeechPart VN_VERBNAME
    • Y_STATEMENT

      public static final SpeechPart Y_STATEMENT
    • Z_STATUS

      public static final SpeechPart Z_STATUS
    • W_PUNCTUATION

      public static final SpeechPart W_PUNCTUATION
    • EN_ENGLISH

      public static final SpeechPart EN_ENGLISH
    • X_UNKNOWN

      public static final SpeechPart X_UNKNOWN
    • MY_N

      public static final SpeechPart MY_N
    • MY_V

      public static final SpeechPart MY_V
    • MY_V_AUX

      public static final SpeechPart MY_V_AUX
    • MY_PLACE

      public static final SpeechPart MY_PLACE
    • MY_ROAD

      public static final SpeechPart MY_ROAD
  • 字段详细资料

  • 方法详细资料

    • values

      public static SpeechPart[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SpeechPart valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • isFocus

      public boolean isFocus()
      该词性是否应被关注,对于大部分词性对解析并无作用,因此我们可以直接忽略。
      返回:
    • toSpeechPart

      public static SpeechPart toSpeechPart(String index)