Feature #1468
RCP: 0.7.7, use CQL @ marker in Index command
Statut: | Closed | Début: | 02/09/2015 | |
---|---|---|---|---|
Priorité: | Urgent | Echéance: | ||
Assigné à: | - | % réalisé: | 100% |
|
Catégorie: | Commands | Temps passé: | - | |
Version cible: | TXM 0.7.8 |
Description
When a CQL contains an '@
' marker, like in for example "'je' @
[pos='V.*']", the result match list contains three columns named CQI_CONST_FIELD_MATCH (start), CQI_CONST_FIELD_MATCHEND (end) and CQI_CONST_FIELD_TARGET (target: corresponding to the position of the match marked by '@
' in the query, that is the verbs in the sample query).
See a complete example usage in Groovy in the CQi tutorial.
The Index, Concordance commands must use the target position in their arguments if it is present in the queries.
A command can test if an '@
' target was expressed in the query by using the following test code on the results list: CQI_CQP_SUBCORPUS_HAS_FIELD("DISCOURS:RES1", CQI_CONST_FIELD_TARGET)
.
In some cases the target is not resolved (exemple : "je"
[] [frpos=[V.+"]).
Solution 1¶
If a target position is available in the results list:- Index: must focus the calculus only on the position marked by the
@
target, ignoring the other positions. In the case of the example query, the Index builds the hierarchical lexicon of the verbs only.- if the target is not resolve show <null> or <vide> or <>
Validation test¶
- Run an Index on VOEUX with query :
[frpos="A.*"] [frlemma="pays"]
The result should begrand pays 4 autre pays 2 vieux pays 2 glorieux pays 1 grands pays 1 propres pays 1 vigoureux pays 1
- and with query :
[frpos="A.*"] [frlemma="pays"]
The result should begrand 4 autre 2 vieux 2 glorieux 1 grands 1 propres 1 vigoureux 1
Demandes liées
Historique
#1 Mis à jour par Matthieu Decorde il y a environ 10 ans
- Description mis à jour (diff)
#2 Mis à jour par Serge Heiden il y a environ 10 ans
- Description mis à jour (diff)
#3 Mis à jour par Matthieu Decorde il y a environ 10 ans
- Description mis à jour (diff)
#4 Mis à jour par Matthieu Decorde il y a environ 10 ans
- Sujet changé de RCP: 0.7.7, use CQL @ marker in Index, Concordance, Cooccurrence commands à RCP: 0.7.7, use CQL @ marker in Index, Concordance commands
- Description mis à jour (diff)
#5 Mis à jour par Matthieu Decorde il y a environ 10 ans
- Sujet changé de RCP: 0.7.7, use CQL @ marker in Index, Concordance commands à RCP: 0.7.7, use CQL @ marker in Index command
- Description mis à jour (diff)
- % réalisé changé de 0 à 80
#6 Mis à jour par Matthieu Decorde il y a plus de 9 ans
- Description mis à jour (diff)
#7 Mis à jour par Serge Heiden il y a environ 9 ans
- Description mis à jour (diff)
#8 Mis à jour par Sebastien Jacquot il y a plus d'un an
- Statut changé de New à Closed
#9 Mis à jour par Sebastien Jacquot il y a plus d'un an
- % réalisé changé de 80 à 100