Feature #1124

RCP: x.x, add concordance context cut

Added by Alexey Lavrentev over 4 years ago. Updated almost 4 years ago.

Status:Feedback Start date:10/22/2014
Priority:Normal Due date:
Assignee:- % Done:

90%

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

Description

See #943

Currently "text" is the only structure used to cut concordance contexts.
  • We must be able to cut several structures (for example "text" or "plu" & "deplu" or "p")
  • The import parameters defines which structures to cut in the concordance
    • Step 1: add "context_limit" parameter to "import.xml" file.
      • default text value is "text"
      • default @type value is "list"
      • can contain multiple values (ex: "text,plu,deplu")
      • if @type="list", the context limit query will be <struct1>[]|<struct2>[]|...|<strucN>[]
      • if @type="query", text value must be a CQL query
    • document how to patch "import.xml" for this parameter
    • test with Apocalypse corpus
    • Step 2: replace patch by complete import parameter interface
      • build an import UI for this parameter with a new section "Commands/Commandes" and the "Concordance context structure limits/Structures de limite de contextes de concordance"
      • save the field in "import.xml"

Add in admin documentation the new import parameter element : uis/ui@command=concordance/context_limit, @type attribute and text value

Validation test - Step 1

  • Call concordance on DISCOURS corpus with query "<p> []"
  • exit TXM
  • add the new import configuration in the DISCOURS corpus "import.xml" file (in ~/TXM/corpora/discours)
    ...
    <uis>
      <ui command="concordance">
        <context_limits type="list">text,p</context_limits>
      </ui>
    </uis>
    ...
    
  • re-start TXM
  • Call concordance on DISCOURS corpus with query "<p> []", ensure left contexts are empty

Validation test - Step 2 (using UI)

  • Call concordance on DISCOURS corpus with query "<p> []"
  • open the import parameters
  • select the DISCOURS corpus source folders
  • in the "Commands preferences" section, set the "concordance context structure limits to "p" (list of structure separated by comma)
  • start the import
  • Call concordance on DISCOURS corpus with query "<p> []", ensure left contexts are empty

Related issues

related to Feature #1093: GWT: x.x, add concordance context cut Closed 10/22/2014

History

#1 Updated by Matthieu Decorde over 4 years ago

  • Description updated (diff)

#2 Updated by Matthieu Decorde over 4 years ago

  • Description updated (diff)

#3 Updated by Sebastien Jacquot about 4 years ago

I don't understand why this feature is linked to the import section, shouldn't it be a dynamic TXM preference editable between two query executions ?
(and better, a Corpus preference in future)

#4 Updated by Serge Heiden about 4 years ago

The origin of that ticket comes from the observation of incoherent reading of concordance contexts for a certain type of corpus, hence the import parameter setting to resolve that specific case.

More globally in TXM, there are transition laws between local and global (see [[https://groupes.renater.fr/wiki/txm-info/public/specs_parametres_preferences_commands]]) command parameters (corpus, query, threshold, etc.), user preferences (parameter default value, parameter value, etc.) and corpus parameters (font, default concordance reference, default edition type, previous queries, home page, etc.).

That ticket could be related to a specification defining those relations and how to manage them.

#5 Updated by Matthieu Decorde almost 4 years ago

  • Category set to Commands

Also available in: Atom PDF