[CWB] Exporting 'Function' results to file

lauren romeo lauren.romeo at incubio.com
Mon Feb 16 15:14:34 CET 2015


Hi!

I have a question about exporting results to external files.

I have seen in the documentation that to export the KWIC results of a
query, one can use the command <*cat "query" > 'outputfile.txt';*>.

Is it possible to export to a file the results of a "function" query?

For instance, I am interested in exporting to a file a list of words, and
their respective frequency counts, from a query similiar to this one:

 <*Q1 = *[word = "[a-zA-Z0-9].*"]*; count Q1 by word;*>

The result of this function would be similiar to this one:

*5000    the  [#10000-#99999]*

*4000    to  [#20000-#89999]*

*3000    was  [#30000-#79999]*

*2000    and  [#40000-#69999]*

*1000    of  [#50000-#59999]*

However, I do not want the KWIC results of the variable Q1, rather, My
question is how can I export *the result of the function* <*count Q1 by
word;> ?*

Thank you in advance for any help!
Lauren


-- 
*Lauren Romeo*
PhD-Intern, Natural Language Processing
Tekstum Solutions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20150216/a27dd433/attachment.html>


More information about the CWB mailing list