Packet Parser

Dormant threads from the high school sections are preserved here.
Locked
User avatar
Alejandro
Wakka
Posts: 165
Joined: Mon Jul 10, 2006 8:39 pm
Location: Redmond, WA

Packet Parser

Post by Alejandro » Sun Dec 26, 2010 5:53 am

I wrote a program that takes packets saved as Microsoft Word doc files and translate them into a QBBot-formatted packet, QBML, or HTML. You can get it here. Looking over the readme file is recommended.
I would appreciate any feedback on the parser. Let me know if it has any problems translating a properly formatted packet.
Alejandro
Naperville Central '07
Harvey Mudd '11
University of Washington '17

User avatar
Duncan Idaho
Rikku
Posts: 266
Joined: Fri May 29, 2009 11:07 pm
Location: Fairfax, VA

Re: Packet Parser

Post by Duncan Idaho » Sun Dec 26, 2010 4:49 pm

The link seems to be broken.
Ben Cole, Southside '10, George Mason '14
nothing which we are to perceive in this world equals/ the power of your intense fragility:

"I'll also note the humor in me defending high schoolers from Matt Bollinger." - Mike Cheyne

User avatar
Mike Bentley
Auron
Posts: 5630
Joined: Fri Mar 31, 2006 11:03 pm
Location: Bellevue, WA
Contact:

Re: Packet Parser

Post by Mike Bentley » Sun Dec 26, 2010 5:12 pm

What do you do with questions that have answer lines like:

ANSWER: Marriages of Elizabeth Taylor [accept stuff like Weddings, Espousals, Nuptials, or Matrimony in place of the first underlined part of the answer]

You'd have to be really smart about your replacement policy to correctly parse this.
Mike Bentley
Treasurer, Partnership for Academic Competition Excellence
Adviser, Quizbowl Team at University of Washington
University of Maryland, Class of 2008

User avatar
Alejandro
Wakka
Posts: 165
Joined: Mon Jul 10, 2006 8:39 pm
Location: Redmond, WA

Re: Packet Parser

Post by Alejandro » Mon Dec 27, 2010 4:32 am

Ben Cole wrote:The link seems to be broken.
I forgot that our college is undergoing power tests for the next few days, so server access will be sporadic.
What do you do with questions that have answer lines like:

ANSWER: Marriages of Elizabeth Taylor [accept stuff like Weddings, Espousals, Nuptials, or Matrimony in place of the first underlined part of the answer]
For right now it leaves all of that information in, so removing (or manually adding) the alternative answers are necessary. In the future I might try and parse it for special cases.

Also, the original program did not recognize doc files in some systems. I've changed the way the parser recognizes doc files to only go by the file extension, so be sure that all of the .doc files that you are translating are actual Microsoft Word documents.
Alejandro
Naperville Central '07
Harvey Mudd '11
University of Washington '17

sportfreak1881
Lulu
Posts: 11
Joined: Sun Oct 18, 2009 7:02 pm

Re: Packet Parser

Post by sportfreak1881 » Wed Jan 12, 2011 12:15 am

I am having problems with format that isn't covered in the readme
What are possible problems in an answer line that reads
ANSWER: James Franco
Brian Lanier, Prosper High '11

"Everything is awesome, fundamentally"

User avatar
Alejandro
Wakka
Posts: 165
Joined: Mon Jul 10, 2006 8:39 pm
Location: Redmond, WA

Re: Packet Parser

Post by Alejandro » Wed Jan 12, 2011 3:26 am

sportfreak1881 wrote:I am having problems with format that isn't covered in the readme
What are possible problems in an answer line that reads
ANSWER: James Franco
Nothing looks wrong there. Can you send me the doc file with that answer?
Alejandro
Naperville Central '07
Harvey Mudd '11
University of Washington '17

sportfreak1881
Lulu
Posts: 11
Joined: Sun Oct 18, 2009 7:02 pm

Re: Packet Parser

Post by sportfreak1881 » Wed Jan 12, 2011 11:19 pm

Brian Lanier, Prosper High '11

"Everything is awesome, fundamentally"

User avatar
Alejandro
Wakka
Posts: 165
Joined: Mon Jul 10, 2006 8:39 pm
Location: Redmond, WA

Re: Packet Parser

Post by Alejandro » Thu Jan 13, 2011 12:01 am

sportfreak1881 wrote:Sure, at nscobowl@gmail.com?
Yes please.
Alejandro
Naperville Central '07
Harvey Mudd '11
University of Washington '17

Locked