Module org.elasticsearch.xcore
Class RelevantScriptFeatureExtractor
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.preprocessing.customwordembedding.RelevantScriptFeatureExtractor
- All Implemented Interfaces:
FeatureExtractor
Derived from: https://github.com/google/cld3/blob/master/src/relevant_script_feature.cc
This extracts an array of
FeatureValue from the given text.
These values contain the particular script id for each code point (determined via ScriptDetector)
and their average occurrence in the text.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RelevantScriptFeatureExtractor
public RelevantScriptFeatureExtractor()
-
-
Method Details
-
extractFeatures
- Specified by:
extractFeaturesin interfaceFeatureExtractor
-