hipster-philology / pyrrha

A language-independent post-correction app for POS-tagging and lemmatization
https://pyrrha.huma-num.fr
MIT License
27 stars 16 forks source link

Capacité à uploader un fichier pour les configurations #45

Closed PonteIneptique closed 4 years ago

PonteIneptique commented 6 years ago

Idées

L'upload de fichier vers le serveur semble complètement inutile et pourrait provoquer une surchage à gérer. Par contre, on peut utiliser jQuery/Javascript pour lire le contenu d'un fichier et remplir les textarea :)

Ressources :

Actual behaviour

First situation

  1. As a normal user, when I create a corpus
  2. Click New Corpus
  3. Click on Write your own to show the control list creation as well
  4. Fields #tokens and #allowed_lemma, #allowed_POS and #allowed_morph need to received huge amount of data, most of the time they are copy pasted

Second situation

  1. As a control list administrator, when I want to edit a control list,
  2. Click on Control List > Any control list you contorl.
  3. On the home page of the control list, 3 yellow buttons are visible, they all start with rewrite
  4. On their page, a single field need to received huge amount of data, most of the time they are copy pasted

image

Expected Behaviour

Add a button so that

  1. User can click upload file
  2. The file is read client side and inserted in the text area.
PonteIneptique commented 4 years ago

There is a very simple yet working (I think) implementation of this in the following branch : https://github.com/hipster-philology/pyrrha/commit/a129625449a350d9216c27cd870517a0384abdda

carinedengler commented 4 years ago

We estimate this ticket to take us 2d.