dariusk / NaNoGenMo-2015

National Novel Generation Month, 2015 edition.
340 stars 21 forks source link

Novelpedia #104

Open Ozuru opened 8 years ago

Ozuru commented 8 years ago

My submission can be viewed here: https://github.com/Ozuru/Novelpedia

I have absolutely no experience with AI, yet, so this is a quick project in Python that I had the idea for. The script works in the following way:

  1. Get a random article.
  2. Send a request to get that random article's introduction.
  3. Parse the JSON reply to have the introduction in plain-text.
  4. Attempt to find the end of the first sentence using regular expressions.
  5. Sum the count of the sentence's words, using regular expressions, and then print it into the output file if it still needs populated.

If you have any questions or suggestions for improvement, let me know!

enkiv2 commented 8 years ago

I'd recommend limiting it to featured-status articles, because the majority of articles on Wikipedia in the general pool are machine-generated stubs related to geography.

On Mon, Nov 2, 2015 at 11:01 AM Ozuru notifications@github.com wrote:

My submission can be viewed here: https://github.com/Ozuru/Novelpedia

I have absolutely no experience with AI, yet, so this is a quick project in Python that I had the idea for. The script works in the following way:

  1. Get a random article.
  2. Send a request to get that random article's introduction.
  3. Parse the JSON reply to have the introduction in plain-text.
  4. Attempt to find the end of the first sentence using regular expressions.
  5. Sum the count of the sentence's words, using regular expressions, and then print it into the output file if it still needs populated.

If you have any questions or suggestions for improvement, let me know!

— Reply to this email directly or view it on GitHub https://github.com/dariusk/NaNoGenMo-2015/issues/104.