{ "title": "Gate Cloud Political Abuse Monitor", "description": "A service that tags abusive utterances in any text with the type of abuse (sexist, racist, etc.) and whether the abuse was aimed at the addressee or some other party. This can be run on any English language text. You can check also which words or phrases were deemed potentially abusive via the SlurLookup, SensitiveLookup and OffensiveLookup output options. It will also tag UK members of parliament for the 2015, 2017 and 2019 general elections, candidates for the 2017 and 2019 elections, and members of the Irish Dail Eireann from 20th February 2020. Where an individual has run for election or been elected multiple times, multiple Politician annotations will appear with different minorType features (mp58 for the current UK Parliament as of 2022, mp57 for 2017-2019, mp56 for 2015-2017, etc. and dail33 for Irish TDs elected in 2020) - for full details see https://cloud.gate.ac.uk/shopfront/displayItem/political-abuse-monitor.", "version": "1.0.0", "jobControlOptions": "async-execute", "metadata": [ { "title": "Marco Lettere", "role": "author", "href": "https://accounts.dev.d4science.org/auth/admin/realms/d4science/users/88c76e47-5881-4716-a2bf-02d3b4073574" }, { "role": "category", "title": "Gate Cloud" } ], "inputs": { "ccpimage": { "id": "ccpimage", "title": "Runtime", "description": "The image of the runtime to use for method execution. This depends on the infrastructure specific protocol for interacting with registries.", "minOccurs": 1, "maxOccurs": 1, "schema": { "type": "string", "format": "url", "contentMediaType": "text/plain", "default": "bash", "readOnly": true } }, "service": { "id": "service", "title": "Service name", "description": "The name of the Gate Cloud service", "minOccurs": 1, "maxOccurs": 1, "schema": { "type": "string", "format": null, "contentMediaType": "text/plain", "default": "political-abuse-monitor", "readOnly": true } }, "baseurl": { "id": "baseurl", "title": "Base URL", "description": "The base URL of the Gate Cloud REST API", "minOccurs": 1, "maxOccurs": 1, "schema": { "type": "string", "format": "url", "contentMediaType": "text/plain", "default": "https://cloud-api.gate.ac.uk/process/", "readOnly": true } }, "file": { "id": "file", "title": "Input file", "description": "The input file to be annotated", "minOccurs": 1, "maxOccurs": 1, "schema": { "type": "string", "format": "file", "contentMediaType": "text/plain", "default": "" } }, "contenttype": { "id": "contenttype", "title": "Content type", "description": "The content type of the input file", "minOccurs": 1, "maxOccurs": 1, "schema": { "type": "string", "format": null, "contentMediaType": "text/plain", "default": "text/plain", "enum": [ "text/plain", "application/pdf", "text/html" ] } }, "credentials": { "id": "credentials", "title": "Credentials", "description": "The Basic auth credentials", "minOccurs": 1, "maxOccurs": 1, "schema": { "type": "string", "format": "secret", "contentMediaType": "text/plain", "default": "Z2M4YmEyZDQyaWxiOjNsdWF6dXFhcnE2NW5wZWlwamwy" } }, "annotations": { "id": "annotations", "title": "Annotations", "description": "The requested annotations", "minOccurs": 1, "maxOccurs": 1, "schema": { "type": "string", "format": "checklist", "contentMediaType": "text/plain", "default": ":Abuse,:Topic,:Politician,:Party,:MP,:DailMP,:Hashtag,:UserID,:URL", "enum": [ ":Abuse", ":Topic", ":Politician", ":Party", ":MP", ":DailMP", ":Hashtag", ":UserID", ":URL", ":Person", ":Location", ":Organization", ":Date", ":Address", ":Money", ":Percent", ":Sentence", ":Tweet", ":SlurLookup", ":OffensiveLookup", ":SensitiveLookup" ] } } }, "outputs": {}, "additionalParameters": { "parameters": [ { "name": "deploy-script", "value": [ "echo {{file}} | base64 -d > /ccp_data/input" ] }, { "name": "execute-script", "value": [ "wget {{baseurl}}/{{service}}?annotations={{annotations}} --post-file /ccp_data/input --header \"Authorization: Basic {{credentials}}\" --header \"Content-Type: {{contenttype}}\" --header \"Accept: application/json\" -O /ccp_data/annotated.json" ] }, { "name": "undeploy-script", "value": [] }, { "name": "lifecycle", "value": [ { "time": "2024-04-23T11:48:23.806Z", "type": "updated", "user": "https://accounts.dev.d4science.org/auth/admin/realms/d4science/users/88c76e47-5881-4716-a2bf-02d3b4073574", "context": "%2Fgcube%2Fdevsec%2FCCP" }, { "time": "2024-04-23T11:48:44.703Z", "type": "updated", "user": "https://accounts.dev.d4science.org/auth/admin/realms/d4science/users/88c76e47-5881-4716-a2bf-02d3b4073574", "context": "%2Fgcube%2Fdevsec%2FCCP" } ] } ] }, "links": [ { "rel": "compatibleWith", "title": "D4Science development Infrastructure", "href": "infrastructures/d4science-dev-swarm" } ], "keywords": [ "gatecloud", "abuse", "political" ], "id": "fb2b1099-5a7d-44b2-9731-b4baf5c82d52" }