feature_extractor.proto 797 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Protocol buffers for feature extractor.
  2. syntax = "proto2";
  3. package syntaxnet;
  4. message Parameter {
  5. optional string name = 1;
  6. optional string value = 2;
  7. }
  8. // Descriptor for feature function.
  9. message FeatureFunctionDescriptor {
  10. // Feature function type.
  11. required string type = 1;
  12. // Feature function name.
  13. optional string name = 2;
  14. // Default argument for feature function.
  15. optional int32 argument = 3 [default = 0];
  16. // Named parameters for feature descriptor.
  17. repeated Parameter parameter = 4;
  18. // Nested sub-feature function descriptors.
  19. repeated FeatureFunctionDescriptor feature = 7;
  20. };
  21. // Descriptor for feature extractor.
  22. message FeatureExtractorDescriptor {
  23. // Top-level feature function for extractor.
  24. repeated FeatureFunctionDescriptor feature = 1;
  25. };