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.
Packet Parser
Packet Parser
Alejandro
Naperville Central '07
Harvey Mudd '11
University of Washington '17
Naperville Central '07
Harvey Mudd '11
University of Washington '17
- Duncan Idaho
- Rikku
- Posts: 266
- Joined: Fri May 29, 2009 11:07 pm
- Location: Fairfax, VA
Re: Packet Parser
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
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
- Mike Bentley
- Sin
- Posts: 6461
- Joined: Fri Mar 31, 2006 11:03 pm
- Location: Bellevue, WA
- Contact:
Re: Packet Parser
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.
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
Treasurer, Partnership for Academic Competition Excellence
Adviser, Quizbowl Team at University of Washington
University of Maryland, Class of 2008
Re: Packet Parser
I forgot that our college is undergoing power tests for the next few days, so server access will be sporadic.Ben Cole wrote:The link seems to be broken.
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.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]
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
Naperville Central '07
Harvey Mudd '11
University of Washington '17
-
- Lulu
- Posts: 11
- Joined: Sun Oct 18, 2009 7:02 pm
Re: Packet Parser
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
What are possible problems in an answer line that reads
ANSWER: James Franco
Brian Lanier, Prosper High '11
"Everything is awesome, fundamentally"
"Everything is awesome, fundamentally"
Re: Packet Parser
Nothing looks wrong there. Can you send me the doc file with that answer?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
Alejandro
Naperville Central '07
Harvey Mudd '11
University of Washington '17
Naperville Central '07
Harvey Mudd '11
University of Washington '17
-
- Lulu
- Posts: 11
- Joined: Sun Oct 18, 2009 7:02 pm
Re: Packet Parser
Sure, at [email protected]?
Brian Lanier, Prosper High '11
"Everything is awesome, fundamentally"
"Everything is awesome, fundamentally"
Re: Packet Parser
Yes please.sportfreak1881 wrote:Sure, at [email protected]?
Alejandro
Naperville Central '07
Harvey Mudd '11
University of Washington '17
Naperville Central '07
Harvey Mudd '11
University of Washington '17