The DSaS API is organized around REST. Our API is designed to have predictable, resource-oriented URLS, to use HTTP response codes to indicate API errors, and to use built-in HTTP features. JSON will be returned in all responses from the API, including errors.
Library available here, need to be built as .WAR and deployed on Tomcat 6.xx.
Available here, just add web-method name and parameters.
processing request at: 2012-06-05T08:48:32.795-04:00
DawidSkene object with id=1234512345 has been inserted to the DB...
DawidSkene object with id=1234512345 has been removed from the DB...successfully
[JSON Array]
[any sequence of characters]
[number]
[{"name":"name1","prior":-1.0,"misclassification_cost":{}},{"name":"name2","prior":-1.0,"misclassification_cost":{}}]
2
10
[JSON Array]
[any sequence of characters]
[{"categoryFrom":"name1","categoryTo":"name2","cost":0.9},{"categoryFrom":"name1","categoryTo":"name2","cost":0.1},{"categoryFrom":"name2","categoryTo":"name1","cost":0.4}]
2
[JSON Array]
[any sequence of characters]
{"workerName":"workerName","objectName":"objectName","categoryName":"name1"}
2
[JSON Array]
[any sequence of characters]
[{"workerName":"workerName","objectName":"objectName","categoryName":"name1"},{"workerName":"workerName2","objectName":"objectName2","categoryName":"name2"}]
2
[JSON Object]
[any sequence of characters]
{"objectName":"objectName2","correctCategory":"name1"}
2
[JSON Object]
[any sequence of characters]
[{"objectName":"objectName2","correctCategory":"name1"}, {"objectName":"objectName","correctCategory":"name2"}]
2
[any sequence of characters]
[any sequence of characters]
2
[objectName,objectName2]
[any sequence of characters]
[JSON Array]
2
[objectName,objectName2]
[any sequence of characters]
[JSON Array]
2
[objectName,objectName2]
[any sequence of characters]
[JSON Object]
2
ObjectName2
[number]
[any sequence of characters]
2
10
[any sequence of characters]
[any sequence of characters]
no matter
2
Worker: workerName
Error Rate: 46.0%
Quality (Expected): 41%
Quality (Optimized): 5%
Number of Annotations: 1
Number of Gold Tests: 1
Confusion Matrix:
P[name1->name1]=90.0%
P[name1->name2]=10.0%
P[name2->name1]=55.0%
P[name2->name2]=45.0%
Worker: workerName2
Error Rate: 19.0%
Quality (Expected): 42%
Quality (Optimized): 0%
Number of Annotations: 1
Number of Gold Tests: 1
Confusion Matrix:
P[name1->name1]=45.0% P[name1->name2]=55.0%
P[name2->name1]=10.0% P[name2->name2]=90.0%
[number with floating point]
[any sequence of characters]
2
0.5
[any sequence of characters]
[number with floating point]
[any sequence of characters]
ObjectName2
2
Prior[name1]=0.5
Prior[name2]=0.5
<form method="post" action="http://23.21.128.180:8080/GetAnotherLabel/rest/loadCategories" name="formOne" enctype="application/json; charset=utf-8"> <input name="id" value="2"/> <input name="incremental" value="10"/> <textarea name="categories"> [{"name":"name1","prior":-1.0,"misclassification_cost":{}}, {"name":"name2","prior":-1.0,"misclassification_cost":{}}] </textarea> <button type="submit"> Compute </button> </form>
load Categories and saves BatchDawidSkene/IncrementalDawidSkene object with specified identefier exists to the database (and cache)
[any sequence of characters]
[any sequence of characters]
[number]
http://23.21.128.180:8080/GetAnotherLabel/rest/notjson/loadCategories
name1, name2, name3
12
10
POST http://23.21.128.180:8080/GetAnotherLabel/rest/loadCategories returned a response status of 200 OK
Loads a json set of misclassification cost objects
[any sequence of characters]
[any sequence of characters]
[any sequence of characters]
[any sequence of characters]
http://23.21.128.180:8080/GetAnotherLabel/rest/notjson/loadCosts
name1,name1,name2
name2,name2,name1
0.9,0.1,0.4
2
POST http://23.21.128.180:8080/GetAnotherLabel/rest/loadCosts returned a response status of 200 OK
add a worker-assigned label to the model
[any sequence of characters]
[any sequence of characters]
[any sequence of characters]
http://23.21.128.180:8080/GetAnotherLabel/rest/notjson/loadWorkerAssignedLabels
workerName11
objectName22
name1
2
POST http://23.21.128.180:8080/GetAnotherLabel/rest/loadWorkerAssignedLabel returned a response status of 200 OK
add a worker-assigned labels to the model
[any sequence of characters]
[any sequence of characters]
[any sequence of characters]
http://23.21.128.180:8080/GetAnotherLabel/rest/notjson/loadWorkerAssignedLabels
workerName11,workerName12
objectName22,objectName23
name1,name2
2
POST http://23.21.128.180:8080/GetAnotherLabel/rest/loadWorkerAssignedLabels returned a response status of 200 OK
add a gold label to the model
[any sequence of characters]
[any sequence of characters]
[any sequence of characters]
http://23.21.128.180:8080/GetAnotherLabel/rest/notjson/loadGoldLabel
objectName2
name1
2
POST http://23.21.128.180:8080/GetAnotherLabel/rest/loadGoldLabel returned a response status of 200 OK
add gold labels to the model
[any sequence of characters]
[any sequence of characters]
[any sequence of characters]
http://23.21.128.180:8080/GetAnotherLabel/rest/notjson/loadGoldLabels
objectName2, on3
name1,name2
2
POST http://23.21.128.180:8080/GetAnotherLabel/rest/loadGoldLabels returned a response status of 200 OK