Feature #2039
RCP: X.X, Index to Lexical Table third margin option (reference corpus size defined by a CQL query)
Status: | New | Start date: | 02/16/2017 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% |
|
Category: | Toolbox | Spent time: | - | |
Target version: | TXM X.X |
Description
Adding a third option to the dialog box when converting an Index result into a Lexical table, defining the reference corpus size through a given CQL query.
The new choice set would be :[in english :]
Select which margins you want to use :
- Use all occurrences
- Use index occurrences
- Use occurrences selected by this CQL : * name : * query :
Sélectionnez les marges à utiliser :
- Total toutes les occurrences du corpus
- Total toutes les occurrences recensées par l'index [here there is a typo to fix on "rencensées"]
- Total toutes les occurrences sélectionnées par cette CQL : * nom : * équation :
The default value for the query field is the CQL query used for the current index.
The CQL query is used to compute the sizes of the parts.
As for the first option (the "use all occurrences" one), a line is added, and the "name" parameter is used to build the name of this new line, for example #RESTE_<name>#.
A test checks that no part has a negative value for the #RESTE_<name># line : if a negative value occurs, then the Lexical Table is not built and a message is displayed to the user, such as : "The Lexical Table could not be computed because the reference corpus size defined by the CQL is smaller than the size of the set of occurrences selected by the index."
History
#1 Updated by Benedicte Pincemin almost 7 years ago
When I suggested this feature in 2011, Matthieu wondered whether the CQL query should be replaced by a second index.
In term of user interface it would be something new and challenging (selecting 2 indexes with non symetric roles, without confusions), but anyway the CQL query must have been tested through an index before using it as a parameter.
#2 Updated by Sebastien Jacquot over 5 years ago
- Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0
#3 Updated by Matthieu Decorde over 4 years ago
- Target version changed from TXM 0.8.0 to TXM X.X