### Question:
LabelAlphabetEnum implements ILabelAlphabet<T> { @Override public int lookupIndex(String str) { T t; try { t = Enum.valueOf(clazz, str); return t.ordinal(); } catch (Exception e) { e.printStackTrace(); } return -1; } LabelAlphabetEnum(Class<T> clazz); @Override boolean isStopIncrement(); @Override void setStopIncrement(boolean b); @Override int lookupIndex(String str); @Override int size(); @Override void clear(); @Override T lookupString(int id); @Override T[] lookupString(int[] ids);  }### Answer:
@Test public void test() { System.out.println(label.lookupIndex(PartOfSpeech.人称代词.name())); System.out.println(label.lookupIndex("人称代词")); }