
File processing
Input format: Input files must be in .txt FORMAT with UTF-8 ENCODING and contain PORTUGUESE TEXT. Input files and folders can also be compressed to the .zip format.
Privacy: The input file you upload and the respective output files will be automatically deleted from our computer after being processed and the result downloaded by you. No copies of your files will be retained after your use of this service.
The size of your input file is large and its processing may take some time. To receive by email the url link from which to download your processed file when ready, enter your email address below. After being used for this purpose, your email address will be deleted from our computer.
Instructions to use this web service
The web service for this application is available at https://portulanclarin.net/workbench/lx-proficiency/api/.
Below you find an example of how to use this web service with Python 3.
This example resorts to the requests package. To install this package, run this command in the command line:
pip3 install requests
.
To use this web service, you need an access key you can obtain by clicking in the button below. A key is valid for 31 days. It allows to submit a total of 100 million characters by means of requests with no more 20000 characters each. It allows to enter 100,000 requests, at a rate of no more than 200 requests per hour.
For other usage regimes, you should contact the helpdesk.
The input data and the respective output will be automatically deleted from our computer after being processed. No copies will be retained after your use of this service.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | import json import requests # to install this library, enter in your command line: # pip3 install requests # This is a simple example to illustrate how you can use the LX-Proficiency web service # Requires: key is a string with your access key # Requires: text is a string, UTF-8, with a maximum 20000 characters, Portuguese text, with # the input to be processed # Requires: format is a string, indicating the output format, which can be either # 'text' or 'JSON' # Ensures: output according to specification in https://portulanclarin.net/workbench/lx-proficiency/ # Ensures: dict with number of requests and characters input so far with the access key, and # its date of expiry key = 'access_key_goes_here' # before you run this example, replace access_key_goes_here by # your access key # this string can be replaced by your input text = ''' A final do Campeonato Europeu de Futebol de 2016 realizou-se em 10 de julho de 2016 no Stade de France em Saint-Denis, França. Foi disputada entre Portugal e a França, que era a equipa anfitriã. Os portugueses ganharam a partida e sagraram-se campeões europeus de futebol. Esta foi a segunda participação numa final deste campeonato para Portugal e a terceira para a França. Os portugueses haviam participado anteriormente nas edições de 1984 e em todas as edições desde 1996. O seu melhor resultado anterior foi em 2004, com o título de vice-campeão. Já os franceses participaram em 1960, 1984 e em todas as edições desde 1992, tendo-se sagrado campeões nas edições de 1984 e de 2000. ''' # To read input text from a file, uncomment this block #inputFile = open("myInputFileName", "r", encoding="utf-8") # replace myInputFileName by # the name of your file #text = inputFile.read() #inputFile.close() format = 'text' # other possible value is 'JSON' # Processing: url = "https://portulanclarin.net/workbench/lx-proficiency/api/" request_data = { 'method': 'analyse', 'jsonrpc': '2.0', 'id': 0, 'params': { 'text': text, 'format': format, 'key': key, }, } request = requests.post(url, json=request_data) response_data = request.json() if "error" in response_data: print("Error:", response_data["error"]) else: print("Result:") print(response_data["result"]) # To write output in a file, uncomment this block #outputFile = open("myOutputFileName","w", encoding="utf-8") # replace myOutputFileName by # the name of your file #output = response_data["result"] #outputFile.write(output) #outputFile.close() # Getting acess key status: request_data = { 'method': 'key_status', 'jsonrpc': '2.0', 'id': 0, 'params': { 'key': key, }, } request = requests.post(url, json=request_data) response_data = request.json() if "error" in response_data: print("Error:", response_data["error"]) else: print("Key status:") print(json.dumps(response_data["result"], indent=4)) |
Access key for the web service
This is your access key for this web service.
The following access key for this web service is already associated with .
This key is valid until and can be used to process requests or characters.
Make sure to save this key before closing this dialog box.
LX-Proficiency's Documentation
Functionality
LX-Proficiency is an online service for the quantitative analysis of texts along a range of linguistic metrics, and for the estimation of the proficiency level of texts.
These quantitative metrics are meant to provide suport in the classification of texts according to the proficiency levels in Quadro de Referência para o Ensino Português no Estrangeiro (QuaREPE). These metrics are not meant to be used to replace the decisions they are aimed at supporting.
This service is based on automatic text processing tools. Hence, the results it returns may not be always totally correct. Its high accuracy rate tough allows it to provide a useful service given its aim.
This service was developed at University of Lisbon by NLX-Natural Language and Speech Group of the Departament of Informatics.
Authorship
LX-Proficiency was developed by João Rodrigues, Francisco Costa and João Silva under the coordination of António Branco, at NLX-Natural Language and Speech Group, after being comissioned by Camões IP.
Publications
Irrespective of the most recent version of this tool you may use, when mentioning it, please cite this reference:
- Branco, António, João Rodrigues, João Silva, Francisco Costa and Rui Vaz, 2014, "Assessing Automatic Text Classification for Interactive Language Learning", Proceedings, iSociety2014 - IEEE International Conference on Information Society, pp. 72-80.
License
No fee, attribution, all rights reserved, no redistribution, non commercial, no warranty, no liability, no endorsement, temporary, non exclusive, share alike.
The complete text of this license is here.