summaryrefslogtreecommitdiff
path: root/chromium/third_party/cld_3/src/src/feature_extractor.proto
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/cld_3/src/src/feature_extractor.proto')
-rw-r--r--chromium/third_party/cld_3/src/src/feature_extractor.proto50
1 files changed, 50 insertions, 0 deletions
diff --git a/chromium/third_party/cld_3/src/src/feature_extractor.proto b/chromium/third_party/cld_3/src/src/feature_extractor.proto
new file mode 100644
index 00000000000..50a4c83ce68
--- /dev/null
+++ b/chromium/third_party/cld_3/src/src/feature_extractor.proto
@@ -0,0 +1,50 @@
+/* Copyright 2016 Google Inc. All Rights Reserved.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+==============================================================================*/
+
+// Protocol buffers for feature extractor.
+
+syntax = "proto2";
+option optimize_for = LITE_RUNTIME;
+
+package chrome_lang_id;
+
+message Parameter {
+ optional string name = 1;
+ optional string value = 2;
+}
+
+// Descriptor for feature function.
+message FeatureFunctionDescriptor {
+ // Feature function type.
+ required string type = 1;
+
+ // Feature function name.
+ optional string name = 2;
+
+ // Default argument for feature function.
+ optional int32 argument = 3 [default = 0];
+
+ // Named parameters for feature descriptor.
+ repeated Parameter parameter = 4;
+
+ // Nested sub-feature function descriptors.
+ repeated FeatureFunctionDescriptor feature = 7;
+};
+
+// Descriptor for feature extractor.
+message FeatureExtractorDescriptor {
+ // Top-level feature function for extractor.
+ repeated FeatureFunctionDescriptor feature = 1;
+};