java.lang.Object
org.elasticsearch.xpack.core.ml.inference.preprocessing.customwordembedding.ScriptFeatureExtractor
All Implemented Interfaces:
FeatureExtractor

public final class ScriptFeatureExtractor extends Object implements FeatureExtractor
This is the lone discrete feature. It returns an array of FeatureValue with length 1. The feature has a non-continuous weight (it is always 1.0). The "id" is the related ScriptCode for the first letter Java codepoint. The exception to this is if ScriptCode.Hani is returned. In that case the number of Character.UnicodeScript.HANGUL characters are counted. If more exist than not, ScriptCode.MAX_SCRIPT_CODE is returned. Otherwise its ScriptCode.Hani