diwank commited on
Commit
b576b83
1 Parent(s): 79f06c5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +33 -0
README.md CHANGED
@@ -6,6 +6,37 @@ license: mit
6
 
7
  > Merged and simplified dialog act datasets from the [silicone collection](https://huggingface.co/datasets/silicone/)
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  **Note**: This dataset is highly imbalanced and it is recommended to use a library like [imbalanced-learn](https://imbalanced-learn.org/stable/) before proceeding with training.
10
 
11
  ## Feature description
@@ -34,6 +65,8 @@ license: mit
34
 
35
  *****
36
 
 
 
37
  ### How the original datasets were mapped:
38
 
39
  ```python
 
6
 
7
  > Merged and simplified dialog act datasets from the [silicone collection](https://huggingface.co/datasets/silicone/)
8
 
9
+ All of the subsets of the original collection have been filtered (for errors and ambiguous classes), merged together and grouped into pairs of dialog turns. It is hypothesized that training dialog act classifier by including the previous utterance can help models pick up additional contextual cues and be better at inference esp if an utterance pair is provided.
10
+
11
+ ## Example training script
12
+
13
+ ```python
14
+ from datasets import load_dataset
15
+ from simpletransformers.classification import (
16
+ ClassificationModel, ClassificationArgs
17
+ )
18
+
19
+ # Get data
20
+ silicone_merged = load_dataset("diwank/silicone-merged")
21
+
22
+ train_df = silicone_merged["train"]
23
+ eval_df = silicone_merged["validation"]
24
+
25
+ model_args = ClassificationArgs(
26
+ num_train_epochs=8,
27
+ model_type="deberta",
28
+ model_name="microsoft/deberta-large",
29
+ use_multiprocessing=False,
30
+ evaluate_during_training=True,
31
+ )
32
+
33
+ # Create a ClassificationModel
34
+ model = ClassificationModel("deberta", "microsoft/deberta-large", args=model_args, num_labels=11) # 11 labels in this dataset
35
+
36
+ # Train model
37
+ model.train_model(train_df, eval_df=eval_df)
38
+ ```
39
+
40
  **Note**: This dataset is highly imbalanced and it is recommended to use a library like [imbalanced-learn](https://imbalanced-learn.org/stable/) before proceeding with training.
41
 
42
  ## Feature description
 
65
 
66
  *****
67
 
68
+ ## Appendix
69
+
70
  ### How the original datasets were mapped:
71
 
72
  ```python