Browse Source

Add example download format files

pull/1242/head
Hironsan 3 years ago
parent
commit
a83bcc9b1f
7 changed files with 22 additions and 0 deletions
  1. 4
      frontend/static/formats/seq2seq/download/example.csv
  2. 3
      frontend/static/formats/seq2seq/download/example.jsonl
  3. 3
      frontend/static/formats/sequence_labeling/download/example.jsonl
  4. 3
      frontend/static/formats/sequence_labeling/download/example_text.jsonl
  5. 4
      frontend/static/formats/text_classification/download/example.csv
  6. 3
      frontend/static/formats/text_classification/download/example.jsonl
  7. 2
      frontend/static/formats/text_classification/download/fastText.txt

4
frontend/static/formats/seq2seq/download/example.csv

@ -0,0 +1,4 @@
id,text,label,user
1,"Hello!","こんにちは!",1
2,"Good morning.","おはようございます。",1
3,"See you.","さようなら。",1

3
frontend/static/formats/seq2seq/download/example.jsonl

@ -0,0 +1,3 @@
{"id": 1, "text": "Hello!", "annotations": [{"id": 1, "label": "こんにちは!", "user": 1}]}
{"id": 2, "text": "Good morning.", "annotations": [{"id": 2, "label": "おはようございます。", "user": 1}]}
{"id": 3, "text": "See you.", "annotations": [{"id": 3, "label": "さようなら。", "user": 1}]}

3
frontend/static/formats/sequence_labeling/download/example.jsonl

@ -0,0 +1,3 @@
{"id": 1, "text": "EU rejects ...", "annotations": [{"id": 1, "label": 2, "start_offset": 0, "end_offset": 2, "user": 1}]}
{"id": 2, "text": "Peter Blackburn", "annotations": [{"id": 2, "label": 1, "start_offset": 0, "end_offset": 15, "user": 1}]}
{"id": 3, "text": "President Obama", "annotations": [{"id": 3, "label": 1, "start_offset": 10, "end_offset": 15, "user": 1}]}

3
frontend/static/formats/sequence_labeling/download/example_text.jsonl

@ -0,0 +1,3 @@
{"id": 1, "text": "EU rejects ...", "labels": [[0,2,"ORG"], [11,17, "MISC"], [34,41,"ORG"]]}
{"id": 2, "text": "Peter Blackburn", "labels": [[0, 15, "PERSON"]]}
{"id": 3, "text": "President Obama", "labels": [[10, 15, "PERSON"]]}

4
frontend/static/formats/text_classification/download/example.csv

@ -0,0 +1,4 @@
id,text,label,user
1,"Terrible customer service.",1,1
2,"Really great transaction.",2,1
3,"Great price.",2,1

3
frontend/static/formats/text_classification/download/example.jsonl

@ -0,0 +1,3 @@
{"id": 1, "text": "Terrible customer service.", "annotations": [{"id": 1, "label": 1, "user": 1}]}
{"id": 2, "text": "Really great transaction.", "annotations": [{"id": 2, "label": 2, "user": 1}]}
{"id": 3, "text": "Great price.", "annotations": [{"id": 3, "label": 2, "user": 1}]}

2
frontend/static/formats/text_classification/download/fastText.txt

@ -0,0 +1,2 @@
__label__pet dog cat
__label__car VW BMW
Loading…
Cancel
Save