Lines Matching +full:- +full:workspace
8 * http://www.apache.org/licenses/LICENSE-2.0
23 #include "lang_id/common/embedding-feature-extractor.h"
24 #include "lang_id/common/fel/feature-extractor.h"
25 #include "lang_id/common/fel/task-context.h"
26 #include "lang_id/common/fel/workspace.h"
48 // including requesting a workspace for caching extracted features.
55 // Preprocesses *obj using the internal workspace registry.
56 void Preprocess(WorkspaceSet *workspace, OBJ *obj) const { in Preprocess() argument
57 workspace->Reset(workspace_registry_); in Preprocess()
58 feature_extractor_.Preprocess(workspace, obj); in Preprocess()
64 // This function uses the precomputed info from |workspace|. Usage pattern:
69 // WorkspaceSet workspace;
70 // feature_interface.Preprocess(&workspace, &obj);
74 // feature_interface.GetFeatures(obj, args, workspace, &features);
76 // This pattern is useful (more efficient) if you can pre-compute some info
80 void GetFeatures(const OBJ &obj, ARGS... args, const WorkspaceSet &workspace, in GetFeatures() argument
82 feature_extractor_.ExtractFeatures(workspace, obj, args..., features); in GetFeatures()
91 // Technically, we still use a workspace, because in GetFeaturesNoCaching()
94 WorkspaceSet workspace; in GetFeaturesNoCaching() local
95 Preprocess(&workspace, obj); in GetFeaturesNoCaching()
97 GetFeatures(*obj, args..., workspace, &features); in GetFeaturesNoCaching()