-
Notifications
You must be signed in to change notification settings - Fork 0
/
DataClasses.js
46 lines (43 loc) · 972 Bytes
/
DataClasses.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* Data classes for the application.
*/
/**
* Class representing sentence data.
* @class SentenceData
*/
class SentenceData {
/**
* @constructor
* @param {string} value The sentence value.
* @param {string} userDomain The user-provided domain for the sentence.
*/
constructor(value, userDomain) {
this.value = value;
this.userDomain = userDomain;
}
}
/**
* Class representing model data.
* @class ModelData
*/
class ModelData {
/**
* @constructor
* @param {string} provider The provider of the model.
* @param {string} vendor The vendor of the model.
* @param {string} id The model ID.
* @param {string} name The model name.
* @param {Object} config The model configuration.
*/
constructor(provider, vendor, id, name, config) {
this.provider = provider;
this.vendor = vendor;
this.id = id;
this.name = name;
this.config = config;
}
}
module.exports = {
SentenceData,
ModelData,
};