krum-utsav
commited on
Commit
·
2a6e06d
1
Parent(s):
08f776d
Update README.md
Browse files
README.md
CHANGED
@@ -28,6 +28,26 @@ Sample training data:
|
|
28 |
}
|
29 |
```
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
## Training params
|
32 |
|
33 |
```json
|
|
|
28 |
}
|
29 |
```
|
30 |
|
31 |
+
## Installation
|
32 |
+
|
33 |
+
```bash
|
34 |
+
pip install llm-toys
|
35 |
+
```
|
36 |
+
|
37 |
+
```python
|
38 |
+
from llm_toys.tasks import Paraphraser
|
39 |
+
|
40 |
+
paraphraser = Paraphraser()
|
41 |
+
paraphraser.paraphrase("Hey, can yuo hepl me cancel my last order?")
|
42 |
+
# "Could you kindly assist me in canceling my previous order?"
|
43 |
+
|
44 |
+
paraphraser.paraphrase("Hey, can yuo hepl me cancel my last order?", tone="professional")
|
45 |
+
# "I would appreciate guidance on canceling my previous order."
|
46 |
+
|
47 |
+
paraphraser.paraphrase("Hey, can yuo hepl me cancel my last order?", tone="witty")
|
48 |
+
# "Hey, I need your help with my last order. Can you wave your magic wand and make it disappear?"
|
49 |
+
```
|
50 |
+
|
51 |
## Training params
|
52 |
|
53 |
```json
|