Bug #2981

CoNLLu export, paragraph insertion failure if no p structure present

Ajouté par Matthieu Decorde il y a plus de 4 ans. Mis à jour il y a presque 3 ans.

Statut:New Début:04/01/2021
Priorité:Normal Echéance:
Assigné à:- % réalisé:

80%

Catégorie:Export Temps passé: -
Version cible:TXM Syntax 2.0

Description

When there is no p structure (no paragraph) in the corpus and the insertParagraph parameter is activated, the command fails with a CQP call stacktrace with the <p> [_.text_id="..."] query.

Solution

  1. detect that the insertParagraph parameter is set and the absence of the p structure
  2. show a console Warning message to alert the user:
    ** insertParagraph parameter is set, but there are no *p* structure (no paragraph) in the {0} CQP corpus. The insertParagraph parameter will be ignored.
  3. desactivate the insertParagraph parameter
  4. continue processing

Révisions associées

Révision 2992
Ajouté par Matthieu Decorde il y a plus de 4 ans

fix paragraph insertion refs #2981

Historique

#1 Mis à jour par Serge Heiden il y a plus de 4 ans

  • Description mis à jour (diff)

#2 Mis à jour par Matthieu Decorde il y a plus de 4 ans

  • Description mis à jour (diff)

#3 Mis à jour par Serge Heiden il y a plus de 4 ans

  • Description mis à jour (diff)

#4 Mis à jour par Matthieu Decorde il y a presque 3 ans

  • Sujet changé de CoNNLu export, paragraph insertion failure if no p structure present à CoNLLu export, paragraph insertion failure if no p structure present

Formats disponibles : Atom PDF