cld3 3.4.2 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -25
- data/cld3.gemspec +6 -4
- data/ext/cld3/Makefile +21 -19
- data/ext/cld3/base.o +0 -0
- data/ext/cld3/cld_3/protos/feature_extractor.pb.h +100 -0
- data/ext/cld3/cld_3/protos/sentence.pb.h +35 -0
- data/ext/cld3/cld_3/protos/task_spec.pb.h +106 -0
- data/ext/cld3/embedding_feature_extractor.o +0 -0
- data/ext/cld3/embedding_network.cc +1 -0
- data/ext/cld3/embedding_network.o +0 -0
- data/ext/cld3/extconf.rb +1 -10
- data/ext/cld3/feature_extractor.o +0 -0
- data/ext/cld3/feature_types.o +0 -0
- data/ext/cld3/fixunicodevalue.o +0 -0
- data/ext/cld3/fml_parser.o +0 -0
- data/ext/cld3/generated_entities.o +0 -0
- data/ext/cld3/generated_ulscript.o +0 -0
- data/ext/cld3/getonescriptspan.cc +0 -2
- data/ext/cld3/getonescriptspan.h +2 -2
- data/ext/cld3/getonescriptspan.o +0 -0
- data/ext/cld3/lang_id_nn_params.o +0 -0
- data/ext/cld3/language_identifier_features.o +0 -0
- data/ext/cld3/libcld3.so +0 -0
- data/ext/cld3/nnet_language_identifier.cc +3 -5
- data/ext/cld3/nnet_language_identifier.o +0 -0
- data/ext/cld3/nnet_language_identifier_c.o +0 -0
- data/ext/cld3/offsetmap.o +0 -0
- data/ext/cld3/registry.o +0 -0
- data/ext/cld3/relevant_script_feature.o +0 -0
- data/ext/cld3/script_span/fixunicodevalue.h +69 -0
- data/ext/cld3/script_span/generated_ulscript.h +142 -0
- data/ext/cld3/script_span/getonescriptspan.h +124 -0
- data/ext/cld3/script_span/integral_types.h +37 -0
- data/ext/cld3/script_span/offsetmap.h +168 -0
- data/ext/cld3/script_span/port.h +143 -0
- data/ext/cld3/script_span/stringpiece.h +81 -0
- data/ext/cld3/script_span/text_processing.h +30 -0
- data/ext/cld3/script_span/utf8acceptinterchange.h +486 -0
- data/ext/cld3/script_span/utf8prop_lettermarkscriptnum.h +1631 -0
- data/ext/cld3/script_span/utf8repl_lettermarklower.h +758 -0
- data/ext/cld3/script_span/utf8scannot_lettermarkspecial.h +1455 -0
- data/ext/cld3/script_span/utf8statetable.h +285 -0
- data/ext/cld3/sentence_features.cc +4 -4
- data/ext/cld3/sentence_features.h +13 -3
- data/ext/cld3/sentence_features.o +0 -0
- data/ext/cld3/task_context.o +0 -0
- data/ext/cld3/task_context_params.o +0 -0
- data/ext/cld3/text_processing.o +0 -0
- data/ext/cld3/unicodetext.o +0 -0
- data/ext/cld3/utf8statetable.o +0 -0
- data/ext/cld3/utils.o +0 -0
- data/ext/cld3/workspace.o +0 -0
- data/lib/cld3/unstable.rb +58 -0
- data/lib/cld3.rb +15 -43
- data/sig/cld3.rbs +65 -0
- metadata +66 -15
- data/ext/cld3/feature_extractor.pb.o +0 -0
- data/ext/cld3/feature_extractor.proto +0 -50
- data/ext/cld3/mkmf.log +0 -37
- data/ext/cld3/sentence.pb.o +0 -0
- data/ext/cld3/sentence.proto +0 -77
- data/ext/cld3/task_spec.pb.o +0 -0
- data/ext/cld3/task_spec.proto +0 -98
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cld3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akihiko Odaki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -30,26 +30,66 @@ dependencies:
|
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.16.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: rbs
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 2.6.0
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 2.7.0
|
43
|
+
type: :development
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 2.6.0
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 2.7.0
|
33
53
|
- !ruby/object:Gem::Dependency
|
34
54
|
name: rspec
|
35
55
|
requirement: !ruby/object:Gem::Requirement
|
36
56
|
requirements:
|
37
57
|
- - ">="
|
38
58
|
- !ruby/object:Gem::Version
|
39
|
-
version: 3.
|
59
|
+
version: 3.11.0
|
40
60
|
- - "<"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 3.12.0
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
41
68
|
- !ruby/object:Gem::Version
|
42
69
|
version: 3.11.0
|
70
|
+
- - "<"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 3.12.0
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: steep
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 1.0.0
|
80
|
+
- - "<"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.1.0
|
43
83
|
type: :development
|
44
84
|
prerelease: false
|
45
85
|
version_requirements: !ruby/object:Gem::Requirement
|
46
86
|
requirements:
|
47
87
|
- - ">="
|
48
88
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
89
|
+
version: 1.0.0
|
50
90
|
- - "<"
|
51
91
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
92
|
+
version: 1.1.0
|
53
93
|
description: Compact Language Detector v3 (CLD3) is a neural network model for language
|
54
94
|
identification.
|
55
95
|
email: akihiko.odaki@gmail.com
|
@@ -68,6 +108,9 @@ files:
|
|
68
108
|
- ext/cld3/base.h
|
69
109
|
- ext/cld3/base.o
|
70
110
|
- ext/cld3/casts.h
|
111
|
+
- ext/cld3/cld_3/protos/feature_extractor.pb.h
|
112
|
+
- ext/cld3/cld_3/protos/sentence.pb.h
|
113
|
+
- ext/cld3/cld_3/protos/task_spec.pb.h
|
71
114
|
- ext/cld3/embedding_feature_extractor.cc
|
72
115
|
- ext/cld3/embedding_feature_extractor.h
|
73
116
|
- ext/cld3/embedding_feature_extractor.o
|
@@ -79,8 +122,6 @@ files:
|
|
79
122
|
- ext/cld3/feature_extractor.cc
|
80
123
|
- ext/cld3/feature_extractor.h
|
81
124
|
- ext/cld3/feature_extractor.o
|
82
|
-
- ext/cld3/feature_extractor.pb.o
|
83
|
-
- ext/cld3/feature_extractor.proto
|
84
125
|
- ext/cld3/feature_types.cc
|
85
126
|
- ext/cld3/feature_types.h
|
86
127
|
- ext/cld3/feature_types.o
|
@@ -108,7 +149,6 @@ files:
|
|
108
149
|
- ext/cld3/language_identifier_features.o
|
109
150
|
- ext/cld3/libcld3.def
|
110
151
|
- ext/cld3/libcld3.so
|
111
|
-
- ext/cld3/mkmf.log
|
112
152
|
- ext/cld3/nnet_language_identifier.cc
|
113
153
|
- ext/cld3/nnet_language_identifier.h
|
114
154
|
- ext/cld3/nnet_language_identifier.o
|
@@ -125,8 +165,19 @@ files:
|
|
125
165
|
- ext/cld3/relevant_script_feature.h
|
126
166
|
- ext/cld3/relevant_script_feature.o
|
127
167
|
- ext/cld3/script_detector.h
|
128
|
-
- ext/cld3/
|
129
|
-
- ext/cld3/
|
168
|
+
- ext/cld3/script_span/fixunicodevalue.h
|
169
|
+
- ext/cld3/script_span/generated_ulscript.h
|
170
|
+
- ext/cld3/script_span/getonescriptspan.h
|
171
|
+
- ext/cld3/script_span/integral_types.h
|
172
|
+
- ext/cld3/script_span/offsetmap.h
|
173
|
+
- ext/cld3/script_span/port.h
|
174
|
+
- ext/cld3/script_span/stringpiece.h
|
175
|
+
- ext/cld3/script_span/text_processing.h
|
176
|
+
- ext/cld3/script_span/utf8acceptinterchange.h
|
177
|
+
- ext/cld3/script_span/utf8prop_lettermarkscriptnum.h
|
178
|
+
- ext/cld3/script_span/utf8repl_lettermarklower.h
|
179
|
+
- ext/cld3/script_span/utf8scannot_lettermarkspecial.h
|
180
|
+
- ext/cld3/script_span/utf8statetable.h
|
130
181
|
- ext/cld3/sentence_features.cc
|
131
182
|
- ext/cld3/sentence_features.h
|
132
183
|
- ext/cld3/sentence_features.o
|
@@ -138,8 +189,6 @@ files:
|
|
138
189
|
- ext/cld3/task_context_params.cc
|
139
190
|
- ext/cld3/task_context_params.h
|
140
191
|
- ext/cld3/task_context_params.o
|
141
|
-
- ext/cld3/task_spec.pb.o
|
142
|
-
- ext/cld3/task_spec.proto
|
143
192
|
- ext/cld3/text_processing.cc
|
144
193
|
- ext/cld3/text_processing.h
|
145
194
|
- ext/cld3/text_processing.o
|
@@ -160,6 +209,8 @@ files:
|
|
160
209
|
- ext/cld3/workspace.h
|
161
210
|
- ext/cld3/workspace.o
|
162
211
|
- lib/cld3.rb
|
212
|
+
- lib/cld3/unstable.rb
|
213
|
+
- sig/cld3.rbs
|
163
214
|
homepage: https://github.com/akihikodaki/cld3-ruby
|
164
215
|
licenses:
|
165
216
|
- Apache-2.0
|
@@ -172,17 +223,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
172
223
|
requirements:
|
173
224
|
- - ">="
|
174
225
|
- !ruby/object:Gem::Version
|
175
|
-
version: 2.
|
226
|
+
version: 2.7.0
|
176
227
|
- - "<"
|
177
228
|
- !ruby/object:Gem::Version
|
178
|
-
version: 3.
|
229
|
+
version: 3.3.0
|
179
230
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
231
|
requirements:
|
181
232
|
- - ">="
|
182
233
|
- !ruby/object:Gem::Version
|
183
234
|
version: '0'
|
184
235
|
requirements: []
|
185
|
-
rubygems_version: 3.
|
236
|
+
rubygems_version: 3.3.7
|
186
237
|
signing_key:
|
187
238
|
specification_version: 4
|
188
239
|
summary: Compact Language Detector v3 (CLD3)
|
Binary file
|
@@ -1,50 +0,0 @@
|
|
1
|
-
/* Copyright 2016 Google Inc. All Rights Reserved.
|
2
|
-
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
you may not use this file except in compliance with the License.
|
5
|
-
You may obtain a copy of the License at
|
6
|
-
|
7
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
10
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
See the License for the specific language governing permissions and
|
13
|
-
limitations under the License.
|
14
|
-
==============================================================================*/
|
15
|
-
|
16
|
-
// Protocol buffers for feature extractor.
|
17
|
-
|
18
|
-
syntax = "proto2";
|
19
|
-
option optimize_for = LITE_RUNTIME;
|
20
|
-
|
21
|
-
package chrome_lang_id;
|
22
|
-
|
23
|
-
message Parameter {
|
24
|
-
optional string name = 1;
|
25
|
-
optional string value = 2;
|
26
|
-
}
|
27
|
-
|
28
|
-
// Descriptor for feature function.
|
29
|
-
message FeatureFunctionDescriptor {
|
30
|
-
// Feature function type.
|
31
|
-
required string type = 1;
|
32
|
-
|
33
|
-
// Feature function name.
|
34
|
-
optional string name = 2;
|
35
|
-
|
36
|
-
// Default argument for feature function.
|
37
|
-
optional int32 argument = 3 [default = 0];
|
38
|
-
|
39
|
-
// Named parameters for feature descriptor.
|
40
|
-
repeated Parameter parameter = 4;
|
41
|
-
|
42
|
-
// Nested sub-feature function descriptors.
|
43
|
-
repeated FeatureFunctionDescriptor feature = 7;
|
44
|
-
};
|
45
|
-
|
46
|
-
// Descriptor for feature extractor.
|
47
|
-
message FeatureExtractorDescriptor {
|
48
|
-
// Top-level feature function for extractor.
|
49
|
-
repeated FeatureFunctionDescriptor feature = 1;
|
50
|
-
};
|
data/ext/cld3/mkmf.log
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
"pkg-config --exists protobuf"
|
2
|
-
| pkg-config --libs protobuf
|
3
|
-
=> "-lprotobuf -lpthread \n"
|
4
|
-
"gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC conftest.c -L. -L/usr/lib64 -L. -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector-strong -rdynamic -Wl,-export-dynamic -lruby -lm -lc"
|
5
|
-
checked program was:
|
6
|
-
/* begin */
|
7
|
-
1: #include "ruby.h"
|
8
|
-
2:
|
9
|
-
3: int main(int argc, char **argv)
|
10
|
-
4: {
|
11
|
-
5: return !!argv[argc];
|
12
|
-
6: }
|
13
|
-
/* end */
|
14
|
-
|
15
|
-
"gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC conftest.c -L. -L/usr/lib64 -L. -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector-strong -rdynamic -Wl,-export-dynamic -lruby -lprotobuf -lpthread -lm -lc"
|
16
|
-
checked program was:
|
17
|
-
/* begin */
|
18
|
-
1: #include "ruby.h"
|
19
|
-
2:
|
20
|
-
3: int main(int argc, char **argv)
|
21
|
-
4: {
|
22
|
-
5: return !!argv[argc];
|
23
|
-
6: }
|
24
|
-
/* end */
|
25
|
-
|
26
|
-
| pkg-config --cflags-only-I protobuf
|
27
|
-
=> "\n"
|
28
|
-
| pkg-config --cflags-only-other protobuf
|
29
|
-
=> "\n"
|
30
|
-
| pkg-config --libs-only-l protobuf
|
31
|
-
=> "-lprotobuf -lpthread \n"
|
32
|
-
package configuration for protobuf
|
33
|
-
incflags:
|
34
|
-
cflags:
|
35
|
-
ldflags:
|
36
|
-
libs: -lprotobuf -lpthread
|
37
|
-
|
data/ext/cld3/sentence.pb.o
DELETED
Binary file
|
data/ext/cld3/sentence.proto
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
/* Copyright 2016 Google Inc. All Rights Reserved.
|
2
|
-
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
you may not use this file except in compliance with the License.
|
5
|
-
You may obtain a copy of the License at
|
6
|
-
|
7
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
10
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
See the License for the specific language governing permissions and
|
13
|
-
limitations under the License.
|
14
|
-
==============================================================================*/
|
15
|
-
|
16
|
-
// Protocol buffer specification for sentence analysis.
|
17
|
-
|
18
|
-
syntax = "proto2";
|
19
|
-
option optimize_for = LITE_RUNTIME;
|
20
|
-
|
21
|
-
package chrome_lang_id;
|
22
|
-
|
23
|
-
// A Sentence contains the raw text contents of a sentence, as well as an
|
24
|
-
// analysis.
|
25
|
-
message Sentence {
|
26
|
-
// Identifier for sentence.
|
27
|
-
optional string id = 1;
|
28
|
-
|
29
|
-
// Raw text contents of the sentence.
|
30
|
-
optional string text = 2;
|
31
|
-
|
32
|
-
// Tokenization of the sentence.
|
33
|
-
repeated Token token = 3;
|
34
|
-
|
35
|
-
extensions 1000 to max;
|
36
|
-
}
|
37
|
-
|
38
|
-
// A sentence token marks a span of bytes in the sentence text as a token
|
39
|
-
// or word.
|
40
|
-
message Token {
|
41
|
-
// Token word form.
|
42
|
-
required string word = 1;
|
43
|
-
|
44
|
-
// Start position of token in text.
|
45
|
-
required int32 start = 2;
|
46
|
-
|
47
|
-
// End position of token in text. Gives index of last byte, not one past
|
48
|
-
// the last byte. If token came from lexer, excludes any trailing HTML tags.
|
49
|
-
required int32 end = 3;
|
50
|
-
|
51
|
-
// Head of this token in the dependency tree: the id of the token which has an
|
52
|
-
// arc going to this one. If it is the root token of a sentence, then it is
|
53
|
-
// set to -1.
|
54
|
-
optional int32 head = 4 [default = -1];
|
55
|
-
|
56
|
-
// Part-of-speech tag for token.
|
57
|
-
optional string tag = 5;
|
58
|
-
|
59
|
-
// Coarse-grained word category for token.
|
60
|
-
optional string category = 6;
|
61
|
-
|
62
|
-
// Label for dependency relation between this token and its head.
|
63
|
-
optional string label = 7;
|
64
|
-
|
65
|
-
// Break level for tokens that indicates how it was separated from the
|
66
|
-
// previous token in the text.
|
67
|
-
enum BreakLevel {
|
68
|
-
NO_BREAK = 0; // No separation between tokens.
|
69
|
-
SPACE_BREAK = 1; // Tokens separated by space.
|
70
|
-
LINE_BREAK = 2; // Tokens separated by line break.
|
71
|
-
SENTENCE_BREAK = 3; // Tokens separated by sentence break.
|
72
|
-
}
|
73
|
-
|
74
|
-
optional BreakLevel break_level = 8 [default = SPACE_BREAK];
|
75
|
-
|
76
|
-
extensions 1000 to max;
|
77
|
-
}
|
data/ext/cld3/task_spec.pb.o
DELETED
Binary file
|
data/ext/cld3/task_spec.proto
DELETED
@@ -1,98 +0,0 @@
|
|
1
|
-
/* Copyright 2016 Google Inc. All Rights Reserved.
|
2
|
-
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
you may not use this file except in compliance with the License.
|
5
|
-
You may obtain a copy of the License at
|
6
|
-
|
7
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
10
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
See the License for the specific language governing permissions and
|
13
|
-
limitations under the License.
|
14
|
-
==============================================================================*/
|
15
|
-
|
16
|
-
// LINT: ALLOW_GROUPS
|
17
|
-
// Protocol buffer specifications for task configuration.
|
18
|
-
|
19
|
-
syntax = "proto2";
|
20
|
-
option optimize_for = LITE_RUNTIME;
|
21
|
-
|
22
|
-
package chrome_lang_id;
|
23
|
-
|
24
|
-
// Task input descriptor.
|
25
|
-
message TaskInput {
|
26
|
-
// Name of input resource.
|
27
|
-
required string name = 1;
|
28
|
-
|
29
|
-
// Name of stage responsible of creating this resource.
|
30
|
-
optional string creator = 2;
|
31
|
-
|
32
|
-
// File format for resource.
|
33
|
-
repeated string file_format = 3;
|
34
|
-
|
35
|
-
// Record format for resource.
|
36
|
-
repeated string record_format = 4;
|
37
|
-
|
38
|
-
// Is this resource multi-file?
|
39
|
-
optional bool multi_file = 5 [default = false];
|
40
|
-
|
41
|
-
// An input can consist of multiple file sets.
|
42
|
-
repeated group Part = 6 {
|
43
|
-
// File pattern for file set.
|
44
|
-
optional string file_pattern = 7;
|
45
|
-
|
46
|
-
// File format for file set.
|
47
|
-
optional string file_format = 8;
|
48
|
-
|
49
|
-
// Record format for file set.
|
50
|
-
optional string record_format = 9;
|
51
|
-
}
|
52
|
-
}
|
53
|
-
|
54
|
-
// Task output descriptor.
|
55
|
-
message TaskOutput {
|
56
|
-
// Name of output resource.
|
57
|
-
required string name = 1;
|
58
|
-
|
59
|
-
// File format for output resource.
|
60
|
-
optional string file_format = 2;
|
61
|
-
|
62
|
-
// Record format for output resource.
|
63
|
-
optional string record_format = 3;
|
64
|
-
|
65
|
-
// Number of shards in output. If it is different from zero this output is
|
66
|
-
// sharded. If the number of shards is set to -1 this means that the output is
|
67
|
-
// sharded, but the number of shard is unknown. The files are then named
|
68
|
-
// 'base-*-of-*'.
|
69
|
-
optional int32 shards = 4 [default = 0];
|
70
|
-
|
71
|
-
// Base file name for output resource. If this is not set by the task
|
72
|
-
// component it is set to a default value by the workflow engine.
|
73
|
-
optional string file_base = 5;
|
74
|
-
|
75
|
-
// Optional extension added to the file name.
|
76
|
-
optional string file_extension = 6;
|
77
|
-
}
|
78
|
-
|
79
|
-
// A task specification is used for describing executing parameters.
|
80
|
-
message TaskSpec {
|
81
|
-
// Name of task.
|
82
|
-
optional string task_name = 1;
|
83
|
-
|
84
|
-
// Workflow task type.
|
85
|
-
optional string task_type = 2;
|
86
|
-
|
87
|
-
// Task parameters.
|
88
|
-
repeated group Parameter = 3 {
|
89
|
-
required string name = 4;
|
90
|
-
optional string value = 5;
|
91
|
-
}
|
92
|
-
|
93
|
-
// Task inputs.
|
94
|
-
repeated TaskInput input = 6;
|
95
|
-
|
96
|
-
// Task outputs.
|
97
|
-
repeated TaskOutput output = 7;
|
98
|
-
}
|