Skip to content

Commit

Permalink
Examples with completions
Browse files Browse the repository at this point in the history
  • Loading branch information
shevchenkonik committed Aug 8, 2019
1 parent 97df2a8 commit 1d7b0b1
Show file tree
Hide file tree
Showing 17 changed files with 251 additions and 143,640 deletions.
24 changes: 24 additions & 0 deletions examples/audio_classification/completions/0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"completions": [
{
"result": [
{
"from_name": "label",
"id": "wvDEy63Wgs",
"to_name": "audio",
"type": "choices",
"value": {
"choices": [
"Politics"
]
}
}
]
}
],
"data": {
"url": "https://go.heartex.net/static/samples/game.wav"
},
"id": 0,
"task_path": "../examples/audio_classification/tasks.json"
}
3 changes: 2 additions & 1 deletion examples/audio_classification/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import config from "./config.xml";
import tasks from "./tasks.json";
import completion from "./completions/0.json";

export const AudioClassifiaction = { config, tasks };
export const AudioClassifiaction = { config, tasks, completion };
6 changes: 4 additions & 2 deletions examples/audio_classification/tasks.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[{
[
{
"url": "https://go.heartex.net/static/samples/game.wav"
}]
}
]
33 changes: 33 additions & 0 deletions examples/chatbot_analysis/completions/0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"completions": [
{
"result": [
{
"from_name": "chc-1",
"id": "U0BELrkHFO",
"to_name": "dialog",
"type": "choices",
"value": {
"choices": [
"Good answer"
]
}
},
{
"from_name": "answer",
"id": "wpu4IxRzqw",
"to_name": "answer",
"type": "textarea",
"value": {
"text": "Test"
}
}
]
}
],
"data": {
"dialogs": "<div style=\"max-width: 750px\"><div style=\"clear: both\"><div style=\"float: right; display: inline-block; border: 1px solid #F2F3F4; background-color: #F8F9F9; border-radius: 5px; padding: 7px; margin: 10px 0;\"><p><b>Jules</b>: No no, Mr. Wolfe, it's not like that. Your help is definitely appreciated.</p></div></div><div style=\"clear: both\"><div style=\"float: right; display: inline-block; border: 1px solid #F2F3F4; background-color: #F8F9F9; border-radius: 5px; padding: 7px; margin: 10px 0;\"><p><b>Vincent</b>: Look, Mr. Wolfe, I respect you. I just don't like people barking orders at me, that's all.</p></div></div><div style=\"clear: both\"><div style=\"display: inline-block; border: 1px solid #D5F5E3; background-color: #EAFAF1; border-radius: 5px; padding: 7px; margin: 10px 0;\"><p><b>The Wolf</b>: If I'm curt with you, it's because time is a factor. I think fast, I talk fast, and I need you two guys to act fast if you want to get out of this. So pretty please, with sugar on top, clean the car.</p></div></div></div>"
},
"id": 0,
"task_path": "../examples/chatbot_analysis/tasks.json"
}
3 changes: 2 additions & 1 deletion examples/chatbot_analysis/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import config from "./config.xml";
import tasks from "./tasks.json";
import completion from "./completions/0.json";

export const ChatbotAnalysis = { config, tasks };
export const ChatbotAnalysis = { config, tasks, completion };
47 changes: 47 additions & 0 deletions examples/image_bbox/completions/0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"completions": [
{
"result": [
{
"from_name": "tag",
"id": "l9nzOC__un",
"source": "$image",
"to_name": "img",
"type": "rectanglelabels",
"value": {
"height": 51.93992490613267,
"rectanglelabels": [
"Planet"
],
"rotation": 0,
"width": 47.18954248366012,
"x": 37.40522875816994,
"y": 1.3704630788485608
}
},
{
"from_name": "tag",
"id": "8rGMRebMkB",
"source": "$image",
"to_name": "img",
"type": "rectanglelabels",
"value": {
"height": 18.1476846057572,
"rectanglelabels": [
"Moonwalker"
],
"rotation": 0,
"width": 16.601307189542485,
"x": 36.032679738562095,
"y": 59.968710888610765
}
}
]
}
],
"data": {
"image": "https://user.fm/files/v2-901310d5cb3fa90e0616ca10590bacb3/spacexmoon-800x501.jpg"
},
"id": 0,
"task_path": "../examples/image_bbox/tasks.json"
}
2 changes: 1 addition & 1 deletion examples/image_bbox/config.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<View>
<Image name="img" value="$image"></Image>
<RectangleLabels name="tag" toName="img">
<Label value="Planet"></Label>
<Label value="Moonwalker" background="blue"></Label>
</RectangleLabels>
<Image name="img" value="$image"></Image>
</View>
3 changes: 2 additions & 1 deletion examples/image_bbox/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import config from "./config.xml";
import tasks from "./tasks.json";
import completion from "./completions/0.json";

export const ImageBbox = { config, tasks };
export const ImageBbox = { config, tasks, completion };
43 changes: 43 additions & 0 deletions examples/named_entity/completions/0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"completions": [
{
"result": [
{
"from_name": "ner",
"id": "jmsfDPthEY",
"source": "$text",
"to_name": "text",
"type": "labels",
"value": {
"end": 353,
"labels": [
"Date"
],
"start": 343,
"text": "February 22"
}
},
{
"from_name": "ner",
"id": "oaesD6kuGR",
"source": "$text",
"to_name": "text",
"type": "labels",
"value": {
"end": 49,
"labels": [
"Location"
],
"start": 45,
"text": "Bahia"
}
}
]
}
],
"data": {
"text": "Showers continued throughout the week in the Bahia cocoa zone, alleviating the drought since early January and improving prospects for the coming temporao, although normal humidity levels have not been restored, Comissaria Smith said in its weekly review.\n\nThe dry period means the temporao will be late this year. Arrivals for the week ended February 22 were 155,221 bags of 60 kilos making a cumulative total for the season of 5.93 mln against 5.81 at the same stage last year. Again it seems that cocoa delivered earlier on consignment was included in the arrivals figures.\n\nComissaria Smith said there is still some doubt as to how much old crop cocoa is still available as harvesting has practically come to an end. With total Bahia crop estimates around 6.4 mln bags and sales standing at almost 6.2 mln there are a few hundred thousand bags still in the hands of farmers, middlemen, exporters and processors."
},
"id": 0,
"task_path": "../examples/named_entity/tasks.json"
}
3 changes: 2 additions & 1 deletion examples/named_entity/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import config from "./config.xml";
import tasks from "./tasks.json";
import completion from "./completions/0.json";

export const NamedEntity = { config, tasks };
export const NamedEntity = { config, tasks, completion };
28 changes: 28 additions & 0 deletions examples/references/completions/0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"completions": [
{
"result": [
{
"from_name": "reference",
"id": "JIFsmkYFND",
"source": "$text",
"to_name": "text",
"type": "labels",
"value": {
"end": 12,
"labels": [
"OBJ"
],
"start": 8,
"text": "faith"
}
}
]
}
],
"data": {
"text": "To have faith is to trust yourself to the water"
},
"id": 0,
"task_path": "../examples/references/tasks.json"
}
3 changes: 2 additions & 1 deletion examples/references/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import config from "./config.xml";
import tasks from "./tasks.json";
import completion from "./completions/0.json";

export const References = { config, tasks };
export const References = { config, tasks, completion };
35 changes: 35 additions & 0 deletions examples/sentiment_analysis/completions/0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"completions": [
{
"result": [
{
"from_name": "sentiment",
"id": "yrSY-dipPI",
"to_name": "my_text",
"type": "choices",
"value": {
"choices": [
"Neutral"
]
}
}
]
}
],
"data": {
"asin": "1384719342",
"helpful": [
0,
0
],
"overall": 5,
"reviewText": "Not much to write about here, but it does exactly what it's supposed to. filters out the pop sounds. now my recordings are much more crisp. it is one of the lowest prices pop filters on amazon so might as well buy it, they honestly work the same despite their pricing,",
"reviewTime": "02 28, 2014",
"reviewerID": "A2IBPI20UZIR0U",
"reviewerName": "cassandra tu \"Yeah, well, that's just like, u...",
"summary": "good",
"unixReviewTime": 1393545600
},
"id": 0,
"task_path": "../examples/sentiment_analysis/tasks.json"
}
4 changes: 2 additions & 2 deletions examples/sentiment_analysis/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import config from "./config.xml";
import tasks from "./tasks.json";
import completions from "./completions/0.json";
import completion from "./completions/0.json";

export const Sentiment = { config, tasks, completions };
export const Sentiment = { config, tasks, completion };
Loading

0 comments on commit 1d7b0b1

Please sign in to comment.