cartesinus commited on
Commit
3b8e7aa
1 Parent(s): cb3b348

Add NLU config

Browse files
Files changed (1) hide show
  1. nlu_config.json +61 -0
nlu_config.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_name": "xlm-roberta-base",
3
+ "num_intents": 10,
4
+ "num_slots": 7,
5
+ "intent_id2label": {
6
+ "0": "AddEventOnDateWithName",
7
+ "1": "AddEventWithName",
8
+ "2": "CheckCalendarEventName",
9
+ "3": "CheckCalendarOnDate",
10
+ "4": "NotifyOnEventInLocation",
11
+ "5": "NotifyOnEventStart",
12
+ "6": "NotifyWhenEventNameStart",
13
+ "7": "NotNotifyOnEventInLocation",
14
+ "8": "NotNotifyOnEventStart",
15
+ "9": "OpenCalendar"
16
+ },
17
+ "intent_label2id": {
18
+ "AddEventOnDateWithName": "0",
19
+ "AddEventWithName": "1",
20
+ "CheckCalendarEventName": "2",
21
+ "CheckCalendarOnDate": "3",
22
+ "NotifyOnEventInLocation": "4",
23
+ "NotifyOnEventStart": "5",
24
+ "NotifyWhenEventNameStart": "6",
25
+ "NotNotifyOnEventInLocation": "7",
26
+ "NotNotifyOnEventStart": "8",
27
+ "OpenCalendar": "9"
28
+ },
29
+ "slot_id2label": {
30
+ "0": "o",
31
+ "1": "b-event_name",
32
+ "2": "i-event_name",
33
+ "3": "b-date",
34
+ "4": "i-date",
35
+ "5": "b-location",
36
+ "6": "i-location"
37
+ },
38
+ "slot_label2id": {
39
+ "o": "0",
40
+ "b-event_name": "1",
41
+ "i-event_name": "2",
42
+ "b-date": "3",
43
+ "i-date": "4",
44
+ "b-location": "5",
45
+ "i-location": "6"
46
+ },
47
+ "trainer_config": {
48
+ "repository_id": "xlm_r-joint_nlu-custom_ds",
49
+ "evaluation_strategy": "epoch",
50
+ "learning_rate": 2e-05,
51
+ "per_device_train_batch_size": 16,
52
+ "per_device_eval_batch_size": 16,
53
+ "num_train_epochs": 20,
54
+ "weight_decay": 0.01,
55
+ "push_to_hub": true
56
+ },
57
+ "data_collator_config": {
58
+ "padding": true,
59
+ "max_length": 512
60
+ }
61
+ }