Bug #2981

CoNNLu export, paragraph insertion failure if no p structure present

Added by Matthieu Decorde about 1 month ago. Updated about 1 month ago.

Status:New Start date:01/04/2021
Priority:Normal Due date:
Assignee:- % Done:

80%

Category:Export Spent time: -
Target version:TXM Profiterole 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

Associated revisions

Revision 2992
Added by Matthieu Decorde about 1 month ago

fix paragraph insertion refs #2981

History

#1 Updated by Serge Heiden about 1 month ago

  • Description updated (diff)

#2 Updated by Matthieu Decorde about 1 month ago

  • Description updated (diff)

#3 Updated by Serge Heiden about 1 month ago

  • Description updated (diff)

Also available in: Atom PDF