[CWB] [ cwb-Bugs-2981889 ] List attributes in CL library API

SourceForge.net noreply at sourceforge.net
Mon Aug 1 00:59:06 CEST 2011


Bugs item #2981889, was opened at 2010-04-04 19:36
Message generated for change (Comment added) made by andrewhardie
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=722303&aid=2981889&group_id=131809

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: CL low-level library
>Group: TODO-4.0
Status: Open
Resolution: None
Priority: 6
Private: No
Submitted By: Stefan Evert (schtepf)
Assigned to: Stefan Evert (schtepf)
Summary: List attributes in CL library API

Initial Comment:
The public API of the corpus library (CL) should offer functions to list all attributes (of a specific type) defined for a corpus.  This should be easy to implement, as simple as a walk-through of the internal data structures.  For convenience, it could directly return a cl_string_list instead of a (char **).

Ideally, it should also be possible to list all CWB corpora found in the current registry directory (or directories).  This is currently only implemented in CQP and requires reading directory contents and checking for plausible registry entries, so it's not as straightforward to make available at the CL level.

----------------------------------------------------------------------

>Comment By: Andrew Hardie (andrewhardie)
Date: 2011-07-31 22:59

Message:
I have put this back to v4.0 since we are going to be breaking the CL API
*anyway* at that point, so it makes sense to refactor the CQP
registry-scanning functionality into the CL at that point. 

----------------------------------------------------------------------

Comment By: Andrew Hardie (andrewhardie)
Date: 2010-04-08 04:03

Message:
cl_corpus_list_attributes() has been added to corpus.c; the prototype is in
cl.h; all will be in my next commit. I haven't even attempted the "list all
corpora" thing; Stefan, up to you whether to close this tracker entry now
or to leave this open pending the latter!

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=722303&aid=2981889&group_id=131809


More information about the CWB mailing list