feat: add brief concept party classification
This commit is contained in:
@@ -40,6 +40,10 @@ const created = await fetch(`${baseUrl}/api/levels`, {
|
||||
})
|
||||
if (!created.ok) throw new Error(`Could not create browser test level: ${created.status}`)
|
||||
const state = await created.json() as CaseState
|
||||
state.brief = { body: 'Classify the named people and organizations in this investigation.', concepts: [
|
||||
{ id: '44444444-4444-4444-8444-444444444444', label: 'Ada Lovelace', context: 'Named as the correspondent.', expectedPartyKind: 'person' },
|
||||
{ id: '55555555-5555-4555-8555-555555555555', label: 'Difference Engine Bureau', context: 'Issued the archive notice.', expectedPartyKind: 'organization' },
|
||||
] }
|
||||
state.documents = [{
|
||||
id: documentId, title: 'Dated source image', kind: 'IMAGE', date: '2021-04-17', publishedAt: '2021-04-17T12:00:00.000Z',
|
||||
body: [], regions: [], fileType: 'image', metadata: {},
|
||||
|
||||
Reference in New Issue
Block a user