[CWB] Sketch Grammars and macros
Philipp Heinrich
philipp.heinrich at fau.de
Mon Feb 3 14:30:05 CET 2020
Hi José,
cwb-ccc is now hosted publicly on github:
https://github.com/ausgerechnet/cwb-ccc
Best,
Philipp
Am 03.02.20 um 11:19 schrieb José Manuel Martínez Martínez:
> 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
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://liste.sslmit.unibo.it/mailman/listinfo/cwb
--
Philipp Heinrich, M.Sc.
Lehrstuhl für Korpus- und Computerlinguistik
Friedrich-Alexander-Universität Erlangen-Nürnberg
Bismarckstr. 6, 91054 Erlangen
Telefon: +49 9131 85 29250
https://philipp-heinrich.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20200203/11c153f7/attachment.html>
More information about the CWB
mailing list