[CWB] Sketch Grammars and macros
José Manuel Martínez Martínez
chozelinek at gmail.com
Mon Feb 3 11:19:39 CET 2020
Hi Philip,
thanks for sharing. cwb-ccc looks very interesting. Apart from
installing it via PyPI is it possible to clone/fork the repo from your
gitlab?
Cheers,
--
José Manuel Martínez Martínez
https://chozelinek.github.io
On Fri, Jan 31, 2020 at 12:17 PM Philipp Heinrich
<philipp.heinrich at fau.de> wrote:
>
>
> Am 31.01.20 um 08:21 schrieb Stefan Evert:
>
> 4) If you _really_ need more than two marked positions inside the query, you can use additional markers @2 … @9. However, only _two_ of them can be active at the same time, controlled by "set AnchorNumberTarget …" and "set AnchorNumberKeyword …". By re-running the same query several times with different settings of these options, you can build a table with the positions of all markers.
>
> We use this strategy in our own work, supported by a small Python wrapper script. If you're sure that the matches of your query cannot overlap, you can speed up the process by executing the follow-up runs as anchored subqueries (but you need to know what you're doing).
>
> If you want to work with queries with more than two marked positions and you're familiar with python, you might want to use the cwb-ccc package, which you can install via pip from PyPI (https://pypi.org/project/cwb-ccc/):
>
> pip install cwb-ccc
>
> Have a look at the df_anchor_from_query() method from ccc.cwb.CWBEngine to directly work with corpus positions.
>
> Best,
>
> Philipp
>
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://liste.sslmit.unibo.it/mailman/listinfo/cwb
More information about the CWB
mailing list