Use generative models to easily parse out entities from text
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.
Good Kid
import cohereco = 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))
model_size | command xlarge |
frequency_penalty | 0 |
k | 0 |
max_tokens | 200 |
p | 1 |
presence_penalty | 0 |
temperature | 0.9 |