Feature #841

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

Ajouté par Matthieu Decorde il y a plus de 11 ans. Mis à jour il y a plus de 4 ans.

Statut:Closed Début:02/06/2014
Priorité:Normal Echéance:
Assigné à:- % réalisé:

100%

Catégorie:Commands Temps passé: -
Version cible: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


Demandes liées

lié à Feature #1296: RCP: 0.7.7, Manage corpus with holes New 02/04/2015

Historique

#1 Mis à jour par Matthieu Decorde il y a plus de 11 ans

  • Description mis à jour (diff)

#2 Mis à jour par Serge Heiden il y a plus de 11 ans

  • Description mis à jour (diff)

#3 Mis à jour par Matthieu Decorde il y a plus de 10 ans

  • Version cible changé de TXM 0.X.X à TXM 0.7.7

#4 Mis à jour par Matthieu Decorde il y a plus de 10 ans

  • Description mis à jour (diff)
  • Catégorie mis à Commands

#5 Mis à jour par Sebastien Jacquot il y a plus de 10 ans

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 Mis à jour par Matthieu Decorde il y a plus de 10 ans

  • Description mis à jour (diff)
  • % réalisé changé de 0 à 80

not yet commited

#7 Mis à jour par Matthieu Decorde il y a plus de 4 ans

  • Statut changé de New à Closed
  • % réalisé changé de 80 à 100

The TXM 0.8.1 implementation also works with contiguous matches (eg 3 following texts matches)

Formats disponibles : Atom PDF