Bug #2981
CoNLLu export, paragraph insertion failure if no p structure present
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¶
- detect that the insertParagraph parameter is set and the absence of the p structure
- 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.
- desactivate the
insertParagraph
parameter - continue processing
Révisions associées
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