@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/ex_types.js CHANGED
@@ -1,82 +1,82 @@
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 ConcreteThriftException = module.exports.ConcreteThriftException = class extends Thrift.TException {
15
- constructor(args) {
16
- super(args);
17
- this.name = "ConcreteThriftException";
18
- this.message = null;
19
- this.serEx = null;
20
- if (args) {
21
- if (args.message !== undefined && args.message !== null) {
22
- this.message = args.message;
23
- } else {
24
- throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field message is unset!');
25
- }
26
- if (args.serEx !== undefined && args.serEx !== null) {
27
- this.serEx = args.serEx;
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.STRING) {
44
- this.message = input.readString();
45
- } else {
46
- input.skip(ftype);
47
- }
48
- break;
49
- case 2:
50
- if (ftype == Thrift.Type.STRING) {
51
- this.serEx = input.readBinary();
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('ConcreteThriftException');
67
- if (this.message !== null && this.message !== undefined) {
68
- output.writeFieldBegin('message', Thrift.Type.STRING, 1);
69
- output.writeString(this.message);
70
- output.writeFieldEnd();
71
- }
72
- if (this.serEx !== null && this.serEx !== undefined) {
73
- output.writeFieldBegin('serEx', Thrift.Type.STRING, 2);
74
- output.writeBinary(this.serEx);
75
- output.writeFieldEnd();
76
- }
77
- output.writeFieldStop();
78
- output.writeStructEnd();
79
- return;
80
- }
81
-
82
- };
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 ConcreteThriftException = module.exports.ConcreteThriftException = class extends Thrift.TException {
15
+ constructor(args) {
16
+ super(args);
17
+ this.name = "ConcreteThriftException";
18
+ this.message = null;
19
+ this.serEx = null;
20
+ if (args) {
21
+ if (args.message !== undefined && args.message !== null) {
22
+ this.message = args.message;
23
+ } else {
24
+ throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field message is unset!');
25
+ }
26
+ if (args.serEx !== undefined && args.serEx !== null) {
27
+ this.serEx = args.serEx;
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.STRING) {
44
+ this.message = input.readString();
45
+ } else {
46
+ input.skip(ftype);
47
+ }
48
+ break;
49
+ case 2:
50
+ if (ftype == Thrift.Type.STRING) {
51
+ this.serEx = input.readBinary();
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('ConcreteThriftException');
67
+ if (this.message !== null && this.message !== undefined) {
68
+ output.writeFieldBegin('message', Thrift.Type.STRING, 1);
69
+ output.writeString(this.message);
70
+ output.writeFieldEnd();
71
+ }
72
+ if (this.serEx !== null && this.serEx !== undefined) {
73
+ output.writeFieldBegin('serEx', Thrift.Type.STRING, 2);
74
+ output.writeBinary(this.serEx);
75
+ output.writeFieldEnd();
76
+ }
77
+ output.writeFieldStop();
78
+ output.writeStructEnd();
79
+ return;
80
+ }
81
+
82
+ };
package/language_types.js CHANGED
@@ -1,123 +1,123 @@
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
- const metadata_ttypes = require('./metadata_types');
13
- const uuid_ttypes = require('./uuid_types');
14
-
15
-
16
- const ttypes = module.exports = {};
17
- const LanguageIdentification = module.exports.LanguageIdentification = class {
18
- constructor(args) {
19
- this.uuid = null;
20
- this.metadata = null;
21
- this.languageToProbabilityMap = null;
22
- if (args) {
23
- if (args.uuid !== undefined && args.uuid !== null) {
24
- this.uuid = new uuid_ttypes.UUID(args.uuid);
25
- } else {
26
- throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field uuid is unset!');
27
- }
28
- if (args.metadata !== undefined && args.metadata !== null) {
29
- this.metadata = new metadata_ttypes.AnnotationMetadata(args.metadata);
30
- } else {
31
- throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field metadata is unset!');
32
- }
33
- if (args.languageToProbabilityMap !== undefined && args.languageToProbabilityMap !== null) {
34
- this.languageToProbabilityMap = Thrift.copyMap(args.languageToProbabilityMap, [null]);
35
- } else {
36
- throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field languageToProbabilityMap is unset!');
37
- }
38
- }
39
- }
40
-
41
- read (input) {
42
- input.readStructBegin();
43
- while (true) {
44
- const ret = input.readFieldBegin();
45
- const ftype = ret.ftype;
46
- const fid = ret.fid;
47
- if (ftype == Thrift.Type.STOP) {
48
- break;
49
- }
50
- switch (fid) {
51
- case 1:
52
- if (ftype == Thrift.Type.STRUCT) {
53
- this.uuid = new uuid_ttypes.UUID();
54
- this.uuid.read(input);
55
- } else {
56
- input.skip(ftype);
57
- }
58
- break;
59
- case 2:
60
- if (ftype == Thrift.Type.STRUCT) {
61
- this.metadata = new metadata_ttypes.AnnotationMetadata();
62
- this.metadata.read(input);
63
- } else {
64
- input.skip(ftype);
65
- }
66
- break;
67
- case 3:
68
- if (ftype == Thrift.Type.MAP) {
69
- this.languageToProbabilityMap = {};
70
- const _rtmp31 = input.readMapBegin();
71
- const _size0 = _rtmp31.size || 0;
72
- for (let _i2 = 0; _i2 < _size0; ++_i2) {
73
- let key3 = null;
74
- let val4 = null;
75
- key3 = input.readString();
76
- val4 = input.readDouble();
77
- this.languageToProbabilityMap[key3] = val4;
78
- }
79
- input.readMapEnd();
80
- } else {
81
- input.skip(ftype);
82
- }
83
- break;
84
- default:
85
- input.skip(ftype);
86
- }
87
- input.readFieldEnd();
88
- }
89
- input.readStructEnd();
90
- return;
91
- }
92
-
93
- write (output) {
94
- output.writeStructBegin('LanguageIdentification');
95
- if (this.uuid !== null && this.uuid !== undefined) {
96
- output.writeFieldBegin('uuid', Thrift.Type.STRUCT, 1);
97
- this.uuid.write(output);
98
- output.writeFieldEnd();
99
- }
100
- if (this.metadata !== null && this.metadata !== undefined) {
101
- output.writeFieldBegin('metadata', Thrift.Type.STRUCT, 2);
102
- this.metadata.write(output);
103
- output.writeFieldEnd();
104
- }
105
- if (this.languageToProbabilityMap !== null && this.languageToProbabilityMap !== undefined) {
106
- output.writeFieldBegin('languageToProbabilityMap', Thrift.Type.MAP, 3);
107
- output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.DOUBLE, Thrift.objectLength(this.languageToProbabilityMap));
108
- for (let kiter5 in this.languageToProbabilityMap) {
109
- if (this.languageToProbabilityMap.hasOwnProperty(kiter5)) {
110
- let viter6 = this.languageToProbabilityMap[kiter5];
111
- output.writeString(kiter5);
112
- output.writeDouble(viter6);
113
- }
114
- }
115
- output.writeMapEnd();
116
- output.writeFieldEnd();
117
- }
118
- output.writeFieldStop();
119
- output.writeStructEnd();
120
- return;
121
- }
122
-
123
- };
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
+ const metadata_ttypes = require('./metadata_types');
13
+ const uuid_ttypes = require('./uuid_types');
14
+
15
+
16
+ const ttypes = module.exports = {};
17
+ const LanguageIdentification = module.exports.LanguageIdentification = class {
18
+ constructor(args) {
19
+ this.uuid = null;
20
+ this.metadata = null;
21
+ this.languageToProbabilityMap = null;
22
+ if (args) {
23
+ if (args.uuid !== undefined && args.uuid !== null) {
24
+ this.uuid = new uuid_ttypes.UUID(args.uuid);
25
+ } else {
26
+ throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field uuid is unset!');
27
+ }
28
+ if (args.metadata !== undefined && args.metadata !== null) {
29
+ this.metadata = new metadata_ttypes.AnnotationMetadata(args.metadata);
30
+ } else {
31
+ throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field metadata is unset!');
32
+ }
33
+ if (args.languageToProbabilityMap !== undefined && args.languageToProbabilityMap !== null) {
34
+ this.languageToProbabilityMap = Thrift.copyMap(args.languageToProbabilityMap, [null]);
35
+ } else {
36
+ throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field languageToProbabilityMap is unset!');
37
+ }
38
+ }
39
+ }
40
+
41
+ read (input) {
42
+ input.readStructBegin();
43
+ while (true) {
44
+ const ret = input.readFieldBegin();
45
+ const ftype = ret.ftype;
46
+ const fid = ret.fid;
47
+ if (ftype == Thrift.Type.STOP) {
48
+ break;
49
+ }
50
+ switch (fid) {
51
+ case 1:
52
+ if (ftype == Thrift.Type.STRUCT) {
53
+ this.uuid = new uuid_ttypes.UUID();
54
+ this.uuid.read(input);
55
+ } else {
56
+ input.skip(ftype);
57
+ }
58
+ break;
59
+ case 2:
60
+ if (ftype == Thrift.Type.STRUCT) {
61
+ this.metadata = new metadata_ttypes.AnnotationMetadata();
62
+ this.metadata.read(input);
63
+ } else {
64
+ input.skip(ftype);
65
+ }
66
+ break;
67
+ case 3:
68
+ if (ftype == Thrift.Type.MAP) {
69
+ this.languageToProbabilityMap = {};
70
+ const _rtmp31 = input.readMapBegin();
71
+ const _size0 = _rtmp31.size || 0;
72
+ for (let _i2 = 0; _i2 < _size0; ++_i2) {
73
+ let key3 = null;
74
+ let val4 = null;
75
+ key3 = input.readString();
76
+ val4 = input.readDouble();
77
+ this.languageToProbabilityMap[key3] = val4;
78
+ }
79
+ input.readMapEnd();
80
+ } else {
81
+ input.skip(ftype);
82
+ }
83
+ break;
84
+ default:
85
+ input.skip(ftype);
86
+ }
87
+ input.readFieldEnd();
88
+ }
89
+ input.readStructEnd();
90
+ return;
91
+ }
92
+
93
+ write (output) {
94
+ output.writeStructBegin('LanguageIdentification');
95
+ if (this.uuid !== null && this.uuid !== undefined) {
96
+ output.writeFieldBegin('uuid', Thrift.Type.STRUCT, 1);
97
+ this.uuid.write(output);
98
+ output.writeFieldEnd();
99
+ }
100
+ if (this.metadata !== null && this.metadata !== undefined) {
101
+ output.writeFieldBegin('metadata', Thrift.Type.STRUCT, 2);
102
+ this.metadata.write(output);
103
+ output.writeFieldEnd();
104
+ }
105
+ if (this.languageToProbabilityMap !== null && this.languageToProbabilityMap !== undefined) {
106
+ output.writeFieldBegin('languageToProbabilityMap', Thrift.Type.MAP, 3);
107
+ output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.DOUBLE, Thrift.objectLength(this.languageToProbabilityMap));
108
+ for (let kiter5 in this.languageToProbabilityMap) {
109
+ if (this.languageToProbabilityMap.hasOwnProperty(kiter5)) {
110
+ let viter6 = this.languageToProbabilityMap[kiter5];
111
+ output.writeString(kiter5);
112
+ output.writeDouble(viter6);
113
+ }
114
+ }
115
+ output.writeMapEnd();
116
+ output.writeFieldEnd();
117
+ }
118
+ output.writeFieldStop();
119
+ output.writeStructEnd();
120
+ return;
121
+ }
122
+
123
+ };