Update README.md
Browse files
README.md
CHANGED
|
@@ -48,5 +48,36 @@ CritiqueCore v1 is a compact Transformer model trained **from scratch** for sent
|
|
| 48 |
- **Multilingual:** While it shows some intuition for German, it was not explicitly trained on non-English data.
|
| 49 |
|
| 50 |
## How to use (Inference Script)
|
|
|
|
| 51 |
|
| 52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
- **Multilingual:** While it shows some intuition for German, it was not explicitly trained on non-English data.
|
| 49 |
|
| 50 |
## How to use (Inference Script)
|
| 51 |
+
Use `inference.py` from this repos' files list. Have fun :D
|
| 52 |
|
| 53 |
+
## Examples
|
| 54 |
+
### Example 1: Standard movie review
|
| 55 |
+
**Input:**
|
| 56 |
+
```plaintext
|
| 57 |
+
This movie was an absolute masterpiece! The acting was incredible and I loved every second.
|
| 58 |
+
```
|
| 59 |
+
**Output:**
|
| 60 |
+
```plaintext
|
| 61 |
+
POSITIVE (99.03% confidence)
|
| 62 |
+
```
|
| 63 |
+
### Example 2: Sarcasm
|
| 64 |
+
**Input:**
|
| 65 |
+
```plaintext
|
| 66 |
+
Oh great, another superhero movie. Just what the world needed. I loved sitting through 3 hours of CGI vomit.
|
| 67 |
+
```
|
| 68 |
+
**Output:**
|
| 69 |
+
```plaintext
|
| 70 |
+
NEGATIVE (93.81% confidence)
|
| 71 |
+
```
|
| 72 |
+
### Example 3: Negative question
|
| 73 |
+
**Input:**
|
| 74 |
+
```plaintext
|
| 75 |
+
Why did they even produce it?
|
| 76 |
+
```
|
| 77 |
+
**Output:**
|
| 78 |
+
```plaintext
|
| 79 |
+
NEGATIVE (99.37% confidence)
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
## Training code
|
| 83 |
+
The full training code can be found in this repo as `train.ipynb`.
|