Given a list of text, it will remove improper capitalization and transform the sentence to Capitalized Text
This is a spell check generator that capitalizes samples of text.
Sample: a new type OF aurora FounD on saturn resolves a planetary mystery
Capitalized Text: A New Type Of Aurora Found On Saturn Resolves A Planetary Mystery
--
Sample: online Shopping is ReSHaping Real-world Cities
Title Case: Online Shopping Is Reshaping Real-World Cities
--
Sample: When you close 100 TAbs AFter Finding THE SoluTion To A BuG
Title Case: When You Close 100 Tabs After Finding The Solution To A Bug
--
Sample: mastering DYNAmIC ProGrammING
Title Case:
Mastering Dynamic Programming
import cohereco = cohere.Client('{apiKey}')response = co.generate(model='xlarge',prompt='This is a spell check generator that capitalizes samples of text.\n\nSample: a new type OF aurora FounD on saturn resolves a planetary mystery\nCapitalized Text: A New Type Of Aurora Found On Saturn Resolves A Planetary Mystery\n--\nSample: online Shopping is ReSHaping Real-world Cities\nTitle Case: Online Shopping Is Reshaping Real-World Cities\n--\nSample: When you close 100 TAbs AFter Finding THE SoluTion To A BuG\nTitle Case: When You Close 100 Tabs After Finding The Solution To A Bug\n--\nSample: mastering DYNAmIC ProGrammING\nTitle Case:',max_tokens=50,temperature=0.3,k=0,p=0.75,frequency_penalty=0,presence_penalty=0,stop_sequences=["--"],return_likelihoods='NONE')print('Prediction: {}'.format(response.generations[0].text))
model_size | xlarge |
frequency_penalty | 0 |
k | 0 |
max_tokens | 50 |
p | 0.75 |
presence_penalty | 0 |
stop_sequence | -- |
temperature | 0.3 |