[CWB] cwb-python

Yannick Versley yversley at gmail.com
Sun Apr 4 21:53:08 CEST 2010


Hello Stefan,

Thanks for giving the Python module a try!

Here's an example for using the Python interface:
http://bitbucket.org/yannick/cwb-python/src/tip/examples/test_cqp.py
It does a CQP query (using Jørg's code) to get a list of matches, then
collects the tokens using the CL interface and uses an external morphology
(not included) to look at possible parts of speech for (part of) the match.

> I'd like to include this interface in the official CWB distribution (as a
> "Python API").  Would that be ok with you?  Do you want to keep it in the
> Mercurial repository, or could we upload it to the SVN at cwb.sf.net?
I'll probably keep using Mercurial for it since it's more convenient. If it
gets part of the official SVN, I'd see if the HgSvn bridge does what I
need (i.e. I could pretend it's all mercurial and still send patches or
commit to SVN).

Best wishes,
Yannick


More information about the CWB mailing list