Extract the product and return address from this email:
Dear Elliott,
Unfortunately, your item, Supreme The North Face Statue of Liberty Baltoro Jacket, was not accepted for verification.
We will be shipping this back to 171 John Street, Toronto ON, M5T 1X2.
Product:
Supreme The North Face Statue of Liberty Baltoro Jacket
Address: 171 John Street, Toronto ON, M5T 1X2
1import cohere
2co = cohere.Client('{apiKey}')
3response = co.generate(
4 model='command',
5 prompt='Extract the product and return address from this email:\n\nDear Elliott, \n\nUnfortunately, your item, Supreme The North Face Statue of Liberty Baltoro Jacket, was not accepted for verification. \nWe will be shipping this back to 171 John Street, Toronto ON, M5T 1X2. \n\nProduct:',
6 max_tokens=40,
7 temperature=0.4,
8 k=0,
9 p=1,
10 frequency_penalty=0,
11 presence_penalty=0,
12 stop_sequences=[],
13 return_likelihoods='NONE')
14print('Prediction: {}'.format(response.generations[0].text))
model_size | command |
p | 1 |
presence_penalty | 0 |
max_tokens | 40 |
temperature | 0.4 |
k | 0 |
frequency_penalty | 0 |