clarin-eric / LRSwitchboard

DEPRECATED - Please see https://github.com/clarin-eric/switchboard for latest version - Code Repository for the Language Resources Switchboard of CLARIN
Other
1 stars 0 forks source link

UCTO does not support Swedish #7

Closed dietervu closed 7 years ago

dietervu commented 7 years ago

Trying to process http://clarinws.informatik.uni-leipzig.de:8080/clarinwebservices/sentences/11022/0000-0000-24A4-E/sentencestext/?dataproviderId=8 UCTO is suggested but after logging in it says:

<clamupload><upload source="?dataproviderId=8" filename="1-004a84d801f0409a8b3633b82bdf2b5ad1.txt" inputtemplate="untokinput" templatelabel="Text document" format="PlainTextFormat"><parameters errors="yes"><StaticParameter id="encoding" name="Encoding" description="The character encoding of the file" value="utf-8"/><ChoiceParameter id="language" name="Language" description="The language this text is in" required="1" error="Selected value was not an option! (sv)"><choice id="en">English</choice><choice id="nl">Dutch</choice><choice id="nl-twitter">Dutch on Twitter</choice><choice id="fr">French</choice><choice id="de">German</choice><choice id="it">Italian</choice><choice id="fy">Frisian</choice></ChoiceParameter><StringParameter id="documentid" name="Document ID" description="Enter a unique identifier for this document (no spaces). Needed only for XML output, will be auto-generated if not specified."/><StringParameter id="author" name="Author" description="The author of the document (optional)"/></parameters></upload></clamupload>

proycon commented 7 years ago

Ah, well spotted! ucto does actually support it but the webservice wasn't up to date with the latest version yet. I have updated it now and will deploy on our production server soonish.

proycon commented 7 years ago

Also note: language codes have changed to three-letter iso-639-3 codes now, in line with the latest ucto version (the old ones should work for backward compatibility though)

twagoo commented 7 years ago

@proycon if you can let us know as soon as the server has been updated, @claus-zinn can update the metadata in the switchboard.

proycon commented 7 years ago

@twagoo @claus-zinn: I have deployed the changes on our production server now. Also; please ensure you use https as we will probably deprecate http support very soon.

proycon commented 7 years ago

(Also use the iso-639-3 codes, the backward compatibility is only in ucto itself, not the webservice, so the iso-639-1 ones don't work now)

claus-zinn commented 7 years ago

Ucto is now accepting the missing language options.