Feature #841

TBX: x.x, Progression computed on Sub-corpus

Added by Matthieu Decorde almost 5 years ago. Updated about 4 years ago.

Status:New Start date:06/02/2014
Priority:Normal Due date:
Assignee:- % Done:

80%

Category:Commands Spent time: -
Target version:TXM 0.7.7

Description

X-axis range

Currently, the X-axis starts with the subcorpus first word position and ends with the last word position.

The new behavior must translate the subcorpus positions so that the X-axis starts at 0.

Subcorpus continuity

Solution 1

Currently, the sub-corpus continuity test is only to verify if the CQL query result corresponding to the sub-corpus is composed of only ONE match.

Solution 2

Next step is to test the continuity of all the matches of a sub-corpus:
  • if query result is composed of one match return TRUE
  • else for each match
    • if last match, break
    • if current_match.end = next_match.start-1 then continue
      • else return FALSE
  • return TRUE

Validation test

  • Create a subcorpus with DG6 and DG7 texts of DISCOURS corpus
  • run a progression with "je" query, the progression is computed and the result is the same for R and Java Graphic renderer
  • Create a subcorpus with DG6 and DG11 texts of DISCOURS corpus
  • run a progression: a message appears, the progression cannot be computed (fr=La fonctionnalité Progression n'est pas encore disponible pour les sous-corpus discontinues.)

MD: OK Linux64

History

#1 Updated by Matthieu Decorde almost 5 years ago

  • Description updated (diff)

#2 Updated by Serge Heiden almost 5 years ago

  • Description updated (diff)

#3 Updated by Matthieu Decorde about 4 years ago

  • Target version changed from TXM X.X to TXM 0.7.7

#4 Updated by Matthieu Decorde about 4 years ago

  • Description updated (diff)
  • Category set to Commands

#5 Updated by Sebastien Jacquot about 4 years ago

I think this issue is related to a more general question about sub-corpus management. (The solution #1 and #2 don't seem to be satisfactory)
I created an issue for this, see #1296.

#6 Updated by Matthieu Decorde about 4 years ago

  • Description updated (diff)
  • % Done changed from 0 to 80

not yet commited

Also available in: Atom PDF