Skip to content

Commit

Permalink
[Docs] Fixes upload example
Browse files Browse the repository at this point in the history
  • Loading branch information
manrajgrover committed Jul 17, 2020
1 parent 8ea3842 commit 6e8a404
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tutorials/upload-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ You can also provide the following optional information:

We provide an [example CLI script](../../examples/upload_data/upload_data.py) to show how to upload the datapoints.

For example, you can add data with reference transcripts
For example, you can add data with reference transcripts:

```sh
API_KEY=4369e45d3a94466b8fe1efb86b8a4392 python upload_data.py --username admin --is_marked_for_review True --audio_file OSR_us_000_0010_8k.wav --host localhost --port 80 --reference_transcription "The birch canoe slid on the smooth planks. Glue the sheet to the dark blue background. It's easy to tell the depth of a well. These days a chicken leg is a rare dish. Rice is often served in round bowls. The juice of lemons makes fine punch. The box was thrown beside the parked truck. The hogs were fed chopped corn and garbage. Four hours of steady work faced us. Large size in stockings is hard to sell."
```

or

add data with segmentation values
add data with segmentation values:

```sh
API_KEY=4369e45d3a94466b8fe1efb86b8a4392 python upload_data.py --username admin --is_marked_for_review True --audio_file OSR_us_000_0010_8k.wav --host localhost --port 80 --segmentations '''[{"annotations": {},"end_time": 7.7407,"start_time": 3.8604,"transcription": "Sample transcription data"}]'''
API_KEY=cb0ac22ca0404fd19e89162bee8c462b python upload_data.py --username admin --is_marked_for_review True --audio_file OSR_us_000_0010_8k.wav --host localhost --port 5000 --segmentations '[ { "annotations": { "testing this": { "values": [ "4", "5" ] } }, "end_time": 7.7407, "start_time": 3.8604, "transcription": "Sample transcription data" }, { "end_time": 17.7407, "start_time": 13.8604, "transcription": "Sample transcription data" }]'
```

0 comments on commit 6e8a404

Please sign in to comment.