diff --git a/backend/data_import/pipeline/examples/relation_extraction/example.jsonl b/backend/data_import/pipeline/examples/relation_extraction/example.jsonl index 6ba958ff..2f6dcf27 100644 --- a/backend/data_import/pipeline/examples/relation_extraction/example.jsonl +++ b/backend/data_import/pipeline/examples/relation_extraction/example.jsonl @@ -1,46 +1 @@ -{ - "text": "Google was founded on September 4, 1998, by Larry Page and Sergey Brin.", - "entities": [ - { - "id": 0, - "start_offset": 0, - "end_offset": 6, - "label": "ORG" - }, - { - "id": 1, - "start_offset": 22, - "end_offset": 39, - "label": "DATE" - }, - { - "id": 2, - "start_offset": 44, - "end_offset": 54, - "label": "PERSON" - }, - { - "id": 3, - "start_offset": 59, - "end_offset": 70, - "label": "PERSON" - } - ], - "relations": [ - { - "from_id": 0, - "to_id": 1, - "type": "foundedAt" - }, - { - "from_id": 0, - "to_id": 2, - "type": "foundedBy" - }, - { - "from_id": 0, - "to_id": 3, - "type": "foundedBy" - } - ] -} +{"text":"Google was founded on September 4, 1998, by Larry Page and Sergey Brin.","entities":[{"id":0,"start_offset":0,"end_offset":6,"label":"ORG"},{"id":1,"start_offset":22,"end_offset":39,"label":"DATE"},{"id":2,"start_offset":44,"end_offset":54,"label":"PERSON"},{"id":3,"start_offset":59,"end_offset":70,"label":"PERSON"}],"relations":[{"from_id":0,"to_id":1,"type":"foundedAt"},{"from_id":0,"to_id":2,"type":"foundedBy"},{"from_id":0,"to_id":3,"type":"foundedBy"}]} \ No newline at end of file diff --git a/frontend/pages/projects/_id/dataset/import.vue b/frontend/pages/projects/_id/dataset/import.vue index 3aede52a..3b28a18c 100644 --- a/frontend/pages/projects/_id/dataset/import.vue +++ b/frontend/pages/projects/_id/dataset/import.vue @@ -47,6 +47,16 @@ >
{{ example }}+
For readability, the above format can be displayed as follows:
+{{ JSON.stringify(JSON.parse(example.replaceAll("'", '"')), null, 4) }}+