public static TokenType valueOf(int value) {
        for (TokenType type : values()) {
            if (value == type.value) return type;
        }
        return UNKNOWN;
    }
Translates this from the int code representation returned from {@link #getValue}
linguistics/src/main/java/com/yahoo/language/process/TokenType.java