[CWB] Accessing Results from CQP child with Python

Andrew Nelson an.linguist at gmail.com
Wed Mar 25 15:21:33 CET 2020


Hello,

The tool I'm building has several features and I'm writing everything in
python. When I was writing the initial program I couldn't figure out how to
feed the CQP results to a dataframe, so to just get it working I wrote it
to a file, then read the data from the file to a dataframe to send the DF
to html. I'm using a cqp_interface.py wrapper to run the CQP commands (found
here
<https://github.com/ausgerechnet/cwb-ccc/blob/master/ccc/cqp_interface.py>).
Can anyone here help explain how I should go about passing the results from
cqp to python so I don't have to do this extra step of saving to a file? My
largest corpus is over 800 million tokens, so saving and loading results
just slows things down more.

Thanks for any help!

Best regards,

Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20200325/f5e8eea4/attachment.html>


More information about the CWB mailing list