Concept Relationships

A is to B as C is to D relationships

Generate Content
Creative Writing

Input

These are examples of a is to b as c is to d relationships

--
Example: cat, kitten
Input: dog
Output: puppy.
Cat is to kitten as dog is to puppy.

--
Example: big, small
Input: fast, slow
Output: slow.
Big is to fast as small is to slow.

--
Example: breeze, wind
Input: stream
Output: current
Breeze is to wind as stream is to current.

--
Example: guitar, music
Input: programmer
Output:

Sample Response

Output: code.

Guitar is to music as programmer is to code.

API Request
import cohere
co = cohere.Client('{apiKey}')
response = co.generate(
model='',
prompt='These are examples of a is to b as c is to d relationships \n\n-- \nExample: cat, kitten \nInput: dog \nOutput: puppy. \nCat is to kitten as dog is to puppy. \n\n-- \nExample: big, small \nInput: fast, slow \nOutput: slow. \nBig is to fast as small is to slow. \n\n-- \nExample: breeze, wind \nInput: stream \nOutput: current \nBreeze is to wind as stream is to current. \n\n-- \nExample: guitar, music \nInput: programmer \nOutput:',
max_tokens=50,
temperature=0.9,
k=0,
p=1,
frequency_penalty=0,
presence_penalty=0,
stop_sequences=[],
return_likelihoods='NONE',
language='en')
print('Prediction: {}'.format(response.generations[0].text))

Parameters

model_sizexlarge
frequency_penalty0
k0
max_tokens200
p1
temperature0.9