Update README.md
Browse files
README.md
CHANGED
|
@@ -50,40 +50,13 @@ The fine-tuned model outperforms the base model significantly in terms of Charac
|
|
| 50 |
## Performance Comparison Charts
|
| 51 |
|
| 52 |
### WER & CER Comparison
|
| 53 |
-
```python
|
| 54 |
-
import matplotlib.pyplot as plt
|
| 55 |
|
| 56 |
-
|
| 57 |
-
base_values = [1.3435, 1.1915]
|
| 58 |
-
fine_tuned_values = [0.0675, 0.0193]
|
| 59 |
|
| 60 |
-
|
| 61 |
-
plt.bar(x, base_values, width=0.4, label="Base Model", color='r', align='center')
|
| 62 |
-
plt.bar(x, fine_tuned_values, width=0.4, label="Fine-Tuned Model", color='g', align='edge')
|
| 63 |
|
| 64 |
-
|
| 65 |
-
plt.ylabel("Error Rate")
|
| 66 |
-
plt.title("WER & CER Comparison")
|
| 67 |
-
plt.legend()
|
| 68 |
-
plt.show()
|
| 69 |
-
```
|
| 70 |
|
| 71 |
-
### BLEU Score Comparison
|
| 72 |
-
```python
|
| 73 |
-
categories = ["BLEU", "Precision @1", "Precision @2", "Precision @3", "Precision @4"]
|
| 74 |
-
base_bleu = [0.2007, 26.85, 21.65, 18.13, 15.39]
|
| 75 |
-
fine_tuned_bleu = [0.8596, 93.95, 88.55, 83.82, 79.52]
|
| 76 |
-
|
| 77 |
-
x = range(len(categories))
|
| 78 |
-
plt.bar(x, base_bleu, width=0.4, label="Base Model", color='r', align='center')
|
| 79 |
-
plt.bar(x, fine_tuned_bleu, width=0.4, label="Fine-Tuned Model", color='g', align='edge')
|
| 80 |
-
|
| 81 |
-
plt.xticks(x, categories)
|
| 82 |
-
plt.ylabel("Score (%)")
|
| 83 |
-
plt.title("BLEU Score & Precision Comparison")
|
| 84 |
-
plt.legend()
|
| 85 |
-
plt.show()
|
| 86 |
-
```
|
| 87 |
|
| 88 |
## How to Use
|
| 89 |
You can load this model using the `transformers` library:
|
|
|
|
| 50 |
## Performance Comparison Charts
|
| 51 |
|
| 52 |
### WER & CER Comparison
|
|
|
|
|
|
|
| 53 |
|
| 54 |
+

|
|
|
|
|
|
|
| 55 |
|
| 56 |
+
### BLEU Score Comparison
|
|
|
|
|
|
|
| 57 |
|
| 58 |
+

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
## How to Use
|
| 62 |
You can load this model using the `transformers` library:
|