Transformers can write text, but they can also estimate scores / do regression for any text you give them. Here's a quick demo I made (RoBERTa fine-tuned on Yelp review data)

Jan 9, 2023 · 10:43 PM UTC

Replying to @alyssamvance
how did you get the distributions?
Trained it to output mean and s.d. instead of just mean, then used log(pdf(label)) as the loss function
Replying to @alyssamvance
is lower or higher score better
This is a Yelp review dataset, it's from 1 to 5 stars
Replying to @alyssamvance
love the interactivity!
Thanks! You don't even need AI for that part, though, just WebSockets ☺️
Replying to @alyssamvance
Amazing how sensitive it is to punctuation and capital letters!
Replying to @alyssamvance
One thing you can build with this is by prefixing or not prefixing the text with a hidden prompt, e.g: "The following is written in excellent, idiomatic English with perfect spelling and grammar:" Then you can highlight tokens that are relatively less likely under the prompt.
Replying to @alyssamvance
generalized sentiment scorer for any text as browser plugin within reach. Grammarly was supposedly worth 13 billion, so, yk