Feature #1468

RCP: 0.7.7, use CQL @ marker in Index command

Added by Serge Heiden about 4 years ago. Updated over 3 years ago.

Status:New Start date:09/02/2015
Priority:Urgent Due date:
Assignee:- % Done:

80%

Category:Commands Spent time: -
Target version: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 be
        grand 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 be
        grand    4
        autre    2
        vieux    2
        glorieux    1
        grands    1
        propres    1
        vigoureux    1
    

Related issues

related to Feature #1452: TBX, x.x, add CQI_CONST_FIELD_TARGET data type to CQi New 08/27/2015
related to Feature #1506: RCP: 0.7.7, use CQL @ marker in the Cooccurrence command New 09/02/2015

History

#1 Updated by Matthieu Decorde about 4 years ago

  • Description updated (diff)

#2 Updated by Serge Heiden about 4 years ago

  • Description updated (diff)

#3 Updated by Matthieu Decorde about 4 years ago

  • Description updated (diff)

#4 Updated by Matthieu Decorde about 4 years ago

  • Subject changed from RCP: 0.7.7, use CQL @ marker in Index, Concordance, Cooccurrence commands to RCP: 0.7.7, use CQL @ marker in Index, Concordance commands
  • Description updated (diff)

#5 Updated by Matthieu Decorde about 4 years ago

  • Subject changed from RCP: 0.7.7, use CQL @ marker in Index, Concordance commands to RCP: 0.7.7, use CQL @ marker in Index command
  • Description updated (diff)
  • % Done changed from 0 to 80

#6 Updated by Matthieu Decorde over 3 years ago

  • Description updated (diff)

#7 Updated by Serge Heiden over 3 years ago

  • Description updated (diff)

Also available in: Atom PDF