Contract Entity Extraction

Use generative models to easily parse out entities from text

Generate Content
Extraction

Input

Extract the band name from the contract:

This Music Recording Agreement ("Agreement") is made effective as of the 13 day of December, 2021 by and between Good Kid, a Toronto-based musical group (“Artist”) and Universal Music Group, a record label with license number 545345 (“Recording Label"). Artist and Recording Label may each be referred to in this Agreement individually as a "Party" and collectively as the "Parties." Work under this Agreement shall begin on March 15, 2022.

Sample Response

Good Kid

API Request
import cohere
co = cohere.Client('{apiKey}')
response = co.generate(
model='command-xlarge-20221108',
prompt='extract the band name from the contract: This Music Recording Agreement (\"Agreement\") is made effective as of the 13 day of December, 2021 by and between Good Kid, a Toronto-based musical group (“Artist”) and Universal Music Group, a record label with license number 545345 (“Recording Label\"). Artist and Recording Label may each be referred to in this Agreement individually as a \"Party\" and collectively as the \"Parties.\" Work under this Agreement shall begin on March 15, 2022.',
max_tokens=200,
temperature=0.9,
k=0,
p=1,
frequency_penalty=0,
presence_penalty=0,
stop_sequences=[],
return_likelihoods='NONE')
print('Prediction: {}'.format(response.generations[0].text))

Parameters

model_sizecommand xlarge
frequency_penalty0
k0
max_tokens200
p1
presence_penalty0
temperature0.9