Bug #2981
CoNLLu export, paragraph insertion failure if no p structure present
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¶
- 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
Associated revisions
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