mirror of https://github.com/doccano/doccano.git
Hironsan
2 years ago
11 changed files with 144 additions and 25 deletions
Split View
Diff Options
-
10backend/data_import/celery_tasks.py
-
8backend/data_import/pipeline/cleaners.py
-
1backend/data_import/pipeline/examples/relation_extraction/example.jsonl
-
19backend/data_import/pipeline/factories.py
-
55backend/data_import/pipeline/labeled_examples.py
-
17backend/data_import/pipeline/labels.py
-
10backend/data_import/pipeline/readers.py
-
4backend/data_import/pipeline/writers.py
-
1backend/data_import/tests/data/relation_extraction/example.jsonl
-
8backend/data_import/tests/test_builder.py
-
36backend/data_import/tests/test_tasks.py
@ -0,0 +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"}]} |
Write
Preview
Loading…
Cancel
Save