Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Parsing context free grammar tags into CSV

by SuicideJunkie (Vicar)
on Feb 10, 2014 at 17:23 UTC ( [id://1074281]=note: print w/replies, xml ) Need Help??


in reply to Parsing context free grammar tags into CSV

Are you hoping for some sort of flag to give the parser that will make it output a CSV? That doesn't seem likely.

Seems to me it should be almost trivial to just let the parser do its thing, and then count and print the number of result nodes yourself.

my %typeCounts; $typeCounts{$_->{type}}++ for (@parsedOutputTokens); print $csvFileHandle "$_, $typeCounts{$_}\n" for keys %typeCounts;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1074281]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-24 03:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found