Browse Source

Add upload format examples

pull/1242/head
Hironsan 3 years ago
parent
commit
cca6b13dc5
7 changed files with 30 additions and 0 deletions
  1. 4
      frontend/static/formats/seq2seq/upload/example.csv
  2. 3
      frontend/static/formats/seq2seq/upload/example.jsonl
  3. 11
      frontend/static/formats/sequence_labeling/upload/example.conll.txt
  4. 3
      frontend/static/formats/sequence_labeling/upload/example.jsonl
  5. 4
      frontend/static/formats/text_classification/upload/example.csv
  6. 3
      frontend/static/formats/text_classification/upload/example.jsonl
  7. 2
      frontend/static/formats/text_classification/upload/fastText.txt

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

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

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

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

11
frontend/static/formats/sequence_labeling/upload/example.conll.txt

@ -0,0 +1,11 @@
EU B-ORG
rejects O
German B-MISC
call O
to O
boycott O
British B-MISC
lamb O
. O
Peter B-PER
Blackburn I-PER

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

@ -0,0 +1,3 @@
{"text": "EU rejects German call to boycott British lamb.", "labels": [ [0, 2, "ORG"], [11, 17, "MISC"], ... ]}
{"text": "Peter Blackburn", "labels": [ [0, 15, "PERSON"] ]}
{"text": "President Obama", "labels": [ [10, 15, "PERSON"] ]}

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

@ -0,0 +1,4 @@
text,label
"Terrible customer service.","negative"
"Really great transaction.","positive"
"Great price.","positive"

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

@ -0,0 +1,3 @@
{"text": "Terrible customer service.", "labels": ["negative"]}
{"text": "Really great transaction.", "labels": ["positive"]}
{"text": "Great price.", "labels": ["positive"]}

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

@ -0,0 +1,2 @@
__label__[label name] text
__label_president Obama Trump
Loading…
Cancel
Save