Feature #1124
RCP: x.x, add concordance context cut
Statut: | Closed | Début: | 22/10/2014 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 100% |
|
Catégorie: | Commands | Temps passé: | - | |
Version cible: | 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"
- Step 1: add "context_limit" parameter to "import.xml" file.
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
Demandes liées
Historique
#1 Mis à jour par Matthieu Decorde il y a plus de 10 ans
- Description mis à jour (diff)
#2 Mis à jour par Matthieu Decorde il y a plus de 10 ans
- Description mis à jour (diff)
#3 Mis à jour par Sebastien Jacquot il y a plus de 10 ans
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 Mis à jour par Serge Heiden il y a plus de 10 ans
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 Mis à jour par Matthieu Decorde il y a environ 10 ans
- Catégorie mis à Commands
#6 Mis à jour par Matthieu Decorde il y a plus de 4 ans
- Statut changé de Feedback à Closed
- % réalisé changé de 90 à 100