Bug #2981

CoNLLu export, paragraph insertion failure if no p structure present

Added by Matthieu Decorde over 2 years ago. Updated 10 months 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 over 2 years ago

fix paragraph insertion refs #2981

History

#1 Updated by Serge Heiden over 2 years ago

  • Description updated (diff)

#2 Updated by Matthieu Decorde over 2 years ago

  • Description updated (diff)

#3 Updated by Serge Heiden over 2 years ago

  • Description updated (diff)

#4 Updated by Matthieu Decorde 10 months ago

  • Subject changed from CoNNLu export, paragraph insertion failure if no p structure present to CoNLLu export, paragraph insertion failure if no p structure present

Also available in: Atom PDF