
{
"clientid": "sb-42mn3-3z7p-96r-3c79-0x1pm0l!p216|klgco-lag-vitas!d66",
…
"clientsecret": "5ghsdYM/Z567N5LoQ7nrXBkZ0BV=",
"serviceurls": {
…
"TEXT_LINEAR_RETRAIN_API_URL": "https://mlftrial-retrain-text-linear-api.cfapps.eu10.hana.ondemand.com/api/v2/text/retraining",
…
"TEXT_CLASSIFIER_URL": "https://mlftrial-text-classifier.cfapps.eu10.hana.ondemand.com/api/v2/text/classification",
…
},
"url": "https://p2000894545trial.authentication.eu10.hana.ondemand.com"
}
sentiment
├── test
│ ├── negative
│ └── positive
├── training
│ ├── negative
│ └── positive
└── validation
├── negative
└── positive
mc cp sentiment_100.zip saps3/data/sentiment
URL: TEXT_LINEAR_RETRAIN_API_URL/jobs
Doc: https://api.sap.com/api/text_linear_retrain_api/resource
POST
https://mlftrial-retrain-text-linear-api.cfapps.eu10.hana.ondemand.com/api/v2/text/retraining/jobs
Headers:
Authorization: {{Bearer Token}}
Content-Type: application/json
Body:
{
"dataset": "sentiment",
"modelName": "sentiment",
"preprocessingLanguage": "en",
"completionTime": 24,
"memory": 8192
}
Result:
{
"id": "sentiment-2018-12-01t2235z745432"
}
URL: TEXT_LINEAR_RETRAIN_API_URL/jobs
Doc: https://api.sap.com/api/text_linear_retrain_api/resource
GET
https://mlftrial-retrain-text-linear-api.cfapps.eu10.hana.ondemand.com/api/v2/text/retraining/jobs
Results:
{
"finishTime": "2018-12-01T23:31:02+00:00",
"message": "",
"startTime": "2018-12-01T22:35:53+00:00",
"id": "sentiment-2018-12-01t2235z745432",
"status": "SUCCEEDED",
"submissionTime": "2018-12-01T22:35:51+00:00"
}
mc cp --recursive saps3/data/<JOB ID>/ logs
mc cp --recursive saps3/data/sentiment-2018-12-01t2235z745432/ logs
URL: TEXT_LINEAR_RETRAIN_API_URL/deployments
Doc: https://api.sap.com/api/text_linear_retrain_api/resource
POST
https://mlftrial-retrain-text-linear-api.cfapps.eu10.hana.ondemand.com/api/v2/text/retraining/deploy...
Header:
Authorization: {{Bearer Token}}
Content-Type: application/json
Body:
{
"modelName": "sentiment",
"modelVersion": "1"
}
Result:
{
"id": "f6b34f68-6bf0-4fe8-98f5-9f9a4310a9b8"
}
URL: TEXT_CLASSIFIER_URL/models/{model}/versions/{version}
Doc: Inference Service for Customizable Text Classification
POST
https://mlftrial-text-classifier.cfapps.eu10.hana.ondemand.com/api/v2/text/classification/models/sen...
Header:
Authorization: {{Bearer Token}}
Content-Type: application/json
Body:
texts=Starting sampling of a next batch of dark beers. This one has nice velvety taste, but way too sweet. ? - Drinking a Świderskie by Cerkom @ Oporów —
{
"id": "6288fb40-1671-4c09-7cec-0baa12950d82",
"predictions": [
{
"results": [
{
"label": "positive",
"score": 0.8846777437444767
},
{
"label": "negative",
"score": 0.11532225625552328
}
]
}
],
"processedTime": "2018-12-02T14:24:14.242227+00:00",
"status": "DONE"
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |