Packet Parser

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

Packet Parser

Post by Alejandro »

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 »

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
Sin
Posts: 6067
Joined: Fri Mar 31, 2006 11:03 pm
Location: Bellevue, WA
Contact:

Re: Packet Parser

Post by Mike Bentley »

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
VP of Editing, Partnership for Academic Competition Excellence
Adviser, Quizbowl Team at University of Washington
University of Maryland, Class of 2008

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

Re: Packet Parser

Post by Alejandro »

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 »

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: 183
Joined: Mon Jul 10, 2006 8:39 pm
Location: Seattle, WA

Re: Packet Parser

Post by Alejandro »

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 »

Brian Lanier, Prosper High '11

"Everything is awesome, fundamentally"

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

Re: Packet Parser

Post by Alejandro »

sportfreak1881 wrote:Sure, at [email protected]?
Yes please.
Alejandro
Naperville Central '07
Harvey Mudd '11
University of Washington '17

Locked