Bug #1466

TBX: 0.7.7, struc2Cpos argument type bug

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

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

0%

Category:SearchEngine Spent time: -
Target version:TXM X.X

Description

The CQi struc2Cpos method checks its two arguments
  • String attribute
  • int struc

When attribute is both a structure attribute (structure name) and a positional attribute (word property name) the check always produce a bug with the following error message:

Error during script execution: org.txm.searchengine.cqp.serverException.CqiClErrorWrongAttributeType
org.txm.searchengine.cqp.serverException.CqiClErrorWrongAttributeType
    at org.txm.searchengine.cqp.MemCqiClient.throwExceptionFromCqi(MemCqiClient.java:138)
    at org.txm.searchengine.cqp.MemCqiClient.struc2Cpos(MemCqiClient.java:557)
    at org.txm.searchengine.cqp.ICqiClient$struc2Cpos$1.call(Unknown Source)

Example: the corpus contains <q>...</q> structures and words have a 'q' property.

The code of the check asks for the type of the attribute argument which always return the type related to the positional attribute which always produces the mismatch.

The code of the check should verify differently the type of the attribute so that if the attribute is both a structure attribute name and a positional attribute name, the method should continue (using the structure attribute).

History

#1 Updated by Matthieu Decorde about 8 years ago

  • Target version changed from TXM 0.7.8 to TXM 0.8.0a (split/restructuration)

#2 Updated by Sebastien Jacquot about 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

Also available in: Atom PDF