@ccmaymay/concrete 4.15.0 → 4.15.1

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.
Files changed (42) hide show
  1. package/ActiveLearnerClientService.js +249 -249
  2. package/ActiveLearnerServerService.js +642 -642
  3. package/AnnotateCommunicationService.js +696 -696
  4. package/AnnotateWithContextService.js +298 -298
  5. package/FeedbackService.js +750 -750
  6. package/FetchCommunicationService.js +709 -709
  7. package/README.md +125 -0
  8. package/ResultsServerService.js +2138 -2138
  9. package/SearchProxyService.js +962 -962
  10. package/SearchService.js +685 -685
  11. package/Service.js +373 -373
  12. package/StoreCommunicationService.js +255 -255
  13. package/SummarizationService.js +479 -479
  14. package/access_types.js +168 -168
  15. package/annotate_types.js +26 -26
  16. package/audio_types.js +110 -110
  17. package/cluster_types.js +398 -398
  18. package/communication_fu.js +432 -432
  19. package/communication_types.js +845 -845
  20. package/concrete.js +64 -64
  21. package/context_types.js +65 -65
  22. package/email_types.js +477 -477
  23. package/entities_types.js +658 -658
  24. package/ex_types.js +82 -82
  25. package/language_types.js +123 -123
  26. package/learn_types.js +207 -207
  27. package/linking_types.js +286 -286
  28. package/metadata_types.js +926 -926
  29. package/nitf_types.js +1005 -1005
  30. package/package.json +26 -5
  31. package/results_types.js +18 -18
  32. package/search_types.js +661 -661
  33. package/services_types.js +384 -384
  34. package/situations_types.js +1268 -1268
  35. package/spans_types.js +151 -151
  36. package/structure_types.js +2311 -2311
  37. package/summarization_types.js +433 -433
  38. package/tokenization_fu.js +33 -33
  39. package/tokentagging_fu.js +241 -241
  40. package/twitter_types.js +1553 -1553
  41. package/util.js +117 -117
  42. package/uuid_types.js +67 -67
package/spans_types.js CHANGED
@@ -1,151 +1,151 @@
1
- //
2
- // Autogenerated by Thrift Compiler (0.15.0)
3
- //
4
- // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- //
6
- "use strict";
7
-
8
- const thrift = require('thrift');
9
- const Thrift = thrift.Thrift;
10
- const Int64 = require('node-int64');
11
-
12
-
13
- const ttypes = module.exports = {};
14
- const TextSpan = module.exports.TextSpan = class {
15
- constructor(args) {
16
- this.start = null;
17
- this.ending = null;
18
- if (args) {
19
- if (args.start !== undefined && args.start !== null) {
20
- this.start = args.start;
21
- } else {
22
- throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field start is unset!');
23
- }
24
- if (args.ending !== undefined && args.ending !== null) {
25
- this.ending = args.ending;
26
- } else {
27
- throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field ending is unset!');
28
- }
29
- }
30
- }
31
-
32
- read (input) {
33
- input.readStructBegin();
34
- while (true) {
35
- const ret = input.readFieldBegin();
36
- const ftype = ret.ftype;
37
- const fid = ret.fid;
38
- if (ftype == Thrift.Type.STOP) {
39
- break;
40
- }
41
- switch (fid) {
42
- case 1:
43
- if (ftype == Thrift.Type.I32) {
44
- this.start = input.readI32();
45
- } else {
46
- input.skip(ftype);
47
- }
48
- break;
49
- case 2:
50
- if (ftype == Thrift.Type.I32) {
51
- this.ending = input.readI32();
52
- } else {
53
- input.skip(ftype);
54
- }
55
- break;
56
- default:
57
- input.skip(ftype);
58
- }
59
- input.readFieldEnd();
60
- }
61
- input.readStructEnd();
62
- return;
63
- }
64
-
65
- write (output) {
66
- output.writeStructBegin('TextSpan');
67
- if (this.start !== null && this.start !== undefined) {
68
- output.writeFieldBegin('start', Thrift.Type.I32, 1);
69
- output.writeI32(this.start);
70
- output.writeFieldEnd();
71
- }
72
- if (this.ending !== null && this.ending !== undefined) {
73
- output.writeFieldBegin('ending', Thrift.Type.I32, 2);
74
- output.writeI32(this.ending);
75
- output.writeFieldEnd();
76
- }
77
- output.writeFieldStop();
78
- output.writeStructEnd();
79
- return;
80
- }
81
-
82
- };
83
- const AudioSpan = module.exports.AudioSpan = class {
84
- constructor(args) {
85
- this.start = null;
86
- this.ending = null;
87
- if (args) {
88
- if (args.start !== undefined && args.start !== null) {
89
- this.start = args.start;
90
- } else {
91
- throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field start is unset!');
92
- }
93
- if (args.ending !== undefined && args.ending !== null) {
94
- this.ending = args.ending;
95
- } else {
96
- throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field ending is unset!');
97
- }
98
- }
99
- }
100
-
101
- read (input) {
102
- input.readStructBegin();
103
- while (true) {
104
- const ret = input.readFieldBegin();
105
- const ftype = ret.ftype;
106
- const fid = ret.fid;
107
- if (ftype == Thrift.Type.STOP) {
108
- break;
109
- }
110
- switch (fid) {
111
- case 1:
112
- if (ftype == Thrift.Type.I64) {
113
- this.start = input.readI64();
114
- } else {
115
- input.skip(ftype);
116
- }
117
- break;
118
- case 2:
119
- if (ftype == Thrift.Type.I64) {
120
- this.ending = input.readI64();
121
- } else {
122
- input.skip(ftype);
123
- }
124
- break;
125
- default:
126
- input.skip(ftype);
127
- }
128
- input.readFieldEnd();
129
- }
130
- input.readStructEnd();
131
- return;
132
- }
133
-
134
- write (output) {
135
- output.writeStructBegin('AudioSpan');
136
- if (this.start !== null && this.start !== undefined) {
137
- output.writeFieldBegin('start', Thrift.Type.I64, 1);
138
- output.writeI64(this.start);
139
- output.writeFieldEnd();
140
- }
141
- if (this.ending !== null && this.ending !== undefined) {
142
- output.writeFieldBegin('ending', Thrift.Type.I64, 2);
143
- output.writeI64(this.ending);
144
- output.writeFieldEnd();
145
- }
146
- output.writeFieldStop();
147
- output.writeStructEnd();
148
- return;
149
- }
150
-
151
- };
1
+ //
2
+ // Autogenerated by Thrift Compiler (0.15.0)
3
+ //
4
+ // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ //
6
+ "use strict";
7
+
8
+ const thrift = require('thrift');
9
+ const Thrift = thrift.Thrift;
10
+ const Int64 = require('node-int64');
11
+
12
+
13
+ const ttypes = module.exports = {};
14
+ const TextSpan = module.exports.TextSpan = class {
15
+ constructor(args) {
16
+ this.start = null;
17
+ this.ending = null;
18
+ if (args) {
19
+ if (args.start !== undefined && args.start !== null) {
20
+ this.start = args.start;
21
+ } else {
22
+ throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field start is unset!');
23
+ }
24
+ if (args.ending !== undefined && args.ending !== null) {
25
+ this.ending = args.ending;
26
+ } else {
27
+ throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field ending is unset!');
28
+ }
29
+ }
30
+ }
31
+
32
+ read (input) {
33
+ input.readStructBegin();
34
+ while (true) {
35
+ const ret = input.readFieldBegin();
36
+ const ftype = ret.ftype;
37
+ const fid = ret.fid;
38
+ if (ftype == Thrift.Type.STOP) {
39
+ break;
40
+ }
41
+ switch (fid) {
42
+ case 1:
43
+ if (ftype == Thrift.Type.I32) {
44
+ this.start = input.readI32();
45
+ } else {
46
+ input.skip(ftype);
47
+ }
48
+ break;
49
+ case 2:
50
+ if (ftype == Thrift.Type.I32) {
51
+ this.ending = input.readI32();
52
+ } else {
53
+ input.skip(ftype);
54
+ }
55
+ break;
56
+ default:
57
+ input.skip(ftype);
58
+ }
59
+ input.readFieldEnd();
60
+ }
61
+ input.readStructEnd();
62
+ return;
63
+ }
64
+
65
+ write (output) {
66
+ output.writeStructBegin('TextSpan');
67
+ if (this.start !== null && this.start !== undefined) {
68
+ output.writeFieldBegin('start', Thrift.Type.I32, 1);
69
+ output.writeI32(this.start);
70
+ output.writeFieldEnd();
71
+ }
72
+ if (this.ending !== null && this.ending !== undefined) {
73
+ output.writeFieldBegin('ending', Thrift.Type.I32, 2);
74
+ output.writeI32(this.ending);
75
+ output.writeFieldEnd();
76
+ }
77
+ output.writeFieldStop();
78
+ output.writeStructEnd();
79
+ return;
80
+ }
81
+
82
+ };
83
+ const AudioSpan = module.exports.AudioSpan = class {
84
+ constructor(args) {
85
+ this.start = null;
86
+ this.ending = null;
87
+ if (args) {
88
+ if (args.start !== undefined && args.start !== null) {
89
+ this.start = args.start;
90
+ } else {
91
+ throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field start is unset!');
92
+ }
93
+ if (args.ending !== undefined && args.ending !== null) {
94
+ this.ending = args.ending;
95
+ } else {
96
+ throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field ending is unset!');
97
+ }
98
+ }
99
+ }
100
+
101
+ read (input) {
102
+ input.readStructBegin();
103
+ while (true) {
104
+ const ret = input.readFieldBegin();
105
+ const ftype = ret.ftype;
106
+ const fid = ret.fid;
107
+ if (ftype == Thrift.Type.STOP) {
108
+ break;
109
+ }
110
+ switch (fid) {
111
+ case 1:
112
+ if (ftype == Thrift.Type.I64) {
113
+ this.start = input.readI64();
114
+ } else {
115
+ input.skip(ftype);
116
+ }
117
+ break;
118
+ case 2:
119
+ if (ftype == Thrift.Type.I64) {
120
+ this.ending = input.readI64();
121
+ } else {
122
+ input.skip(ftype);
123
+ }
124
+ break;
125
+ default:
126
+ input.skip(ftype);
127
+ }
128
+ input.readFieldEnd();
129
+ }
130
+ input.readStructEnd();
131
+ return;
132
+ }
133
+
134
+ write (output) {
135
+ output.writeStructBegin('AudioSpan');
136
+ if (this.start !== null && this.start !== undefined) {
137
+ output.writeFieldBegin('start', Thrift.Type.I64, 1);
138
+ output.writeI64(this.start);
139
+ output.writeFieldEnd();
140
+ }
141
+ if (this.ending !== null && this.ending !== undefined) {
142
+ output.writeFieldBegin('ending', Thrift.Type.I64, 2);
143
+ output.writeI64(this.ending);
144
+ output.writeFieldEnd();
145
+ }
146
+ output.writeFieldStop();
147
+ output.writeStructEnd();
148
+ return;
149
+ }
150
+
151
+ };