Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Informal to Formal:
|
| 2 |
+
Wordy to Concise:
|
| 3 |
+
Fill Missing Phrase:
|
| 4 |
+
```
|
| 5 |
+
from transformers import AutoTokenizer, AutoModelWithLMHead
|
| 6 |
+
|
| 7 |
+
tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln21")
|
| 8 |
+
model = AutoModelWithLMHead.from_pretrained("BigSalmon/InformalToFormalLincoln21")
|
| 9 |
+
```
|
| 10 |
+
|
| 11 |
+
```
|
| 12 |
+
https://huggingface.co/spaces/BigSalmon/GPT2 (The model for this space changes over time)
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
```
|
| 16 |
+
https://huggingface.co/spaces/BigSalmon/GPT2_Most_Probable (The model for this space changes over time)
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
```
|
| 20 |
+
How To Make Prompt:
|
| 21 |
+
informal english: i am very ready to do that just that.
|
| 22 |
+
Translated into the Style of Abraham Lincoln: you can assure yourself of my readiness to work toward this end.
|
| 23 |
+
Translated into the Style of Abraham Lincoln: please be assured that i am most ready to undertake this laborious task.
|
| 24 |
+
|
| 25 |
+
informal english: space is huge and needs to be explored.
|
| 26 |
+
Translated into the Style of Abraham Lincoln: space awaits traversal, a new world whose boundaries are endless.
|
| 27 |
+
Translated into the Style of Abraham Lincoln: space is a ( limitless / boundless ) expanse, a vast virgin domain awaiting exploration.
|
| 28 |
+
|
| 29 |
+
informal english: corn fields are all across illinois, visible once you leave chicago.
|
| 30 |
+
Translated into the Style of Abraham Lincoln: corn fields ( permeate illinois / span the state of illinois / ( occupy / persist in ) all corners of illinois / line the horizon of illinois / envelop the landscape of illinois ), manifesting themselves visibly as one ventures beyond chicago.
|
| 31 |
+
|
| 32 |
+
informal english:
|
| 33 |
+
````
|
| 34 |
+
|
| 35 |
+
```
|
| 36 |
+
infill: increasing the number of sidewalks in suburban areas will [MASK].
|
| 37 |
+
Translated into the Style of Abraham Lincoln: increasing the number of sidewalks in suburban areas will ( ( enhance / maximize ) community cohesion / facilitate ( communal ties / the formation of neighborhood camaraderie ) / forge neighborly relations / lend themselves to the advancement of neighborly ties / plant the seeds of community building / flower anew the bonds of friendship / invite the budding of neighborhood rapport / enrich neighborhood life ).
|
| 38 |
+
|
| 39 |
+
infill: corn fields [MASK], [MASK] visibly as one ventures beyond chicago.
|
| 40 |
+
Translated into the Style of Abraham Lincoln: corn fields ( permeate illinois / span the state of illinois / ( occupy / persist in ) all corners of illinois / line the horizon of illinois / envelop the landscape of illinois ), ( manifesting themselves ) visibly as one ventures beyond chicago.
|
| 41 |
+
|
| 42 |
+
infill: the [MASK] the SAT will soon be [MASK]. [MASK] an examination undertaken on one's laptop. [MASK] will allow students to retrieve test results promptly.
|
| 43 |
+
Translated into the Style of Abraham Lincoln: the ( conventional form of ) the SAT will soon be ( consigned to history ). ( replacing it will be ) an examination undertaken on one's laptop. ( so doing ) will allow students to retrieve test results promptly.
|
| 44 |
+
|
| 45 |
+
infill:
|
| 46 |
+
```
|
| 47 |
+
```
|
| 48 |
+
***
|
| 49 |
+
|
| 50 |
+
wordy: chancing upon a linux user is a rare occurrence in the present day.
|
| 51 |
+
Translate into Concise Text: present-day linux users are rare.
|
| 52 |
+
|
| 53 |
+
***
|
| 54 |
+
|
| 55 |
+
wordy: an interest in classical music is becoming more and more less popular.
|
| 56 |
+
Translate into Concise Text: classical music appreciation is dwindling.
|
| 57 |
+
Translate into Concise Text: waning interest in classic music persists.
|
| 58 |
+
Translate into Concise Text: interest in classic music is fading.
|
| 59 |
+
|
| 60 |
+
***
|
| 61 |
+
|
| 62 |
+
wordy: the ice cream was only one dollar, but it was not a good value for the size.
|
| 63 |
+
Translate into Concise Text: the one dollar ice cream was overpriced for its size.
|
| 64 |
+
Translate into Concise Text: overpriced, the one dollar ice cream was small.
|
| 65 |
+
|
| 66 |
+
***
|
| 67 |
+
wordy:
|
| 68 |
+
```
|