Coder Social home page Coder Social logo

ixt / 605204 Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 5.0 119 KB

Simple Haiku converter written in Python + Project to convert the vital wikipedia articles to Haiku

License: Creative Commons Zero v1.0 Universal

Python 78.07% Shell 21.93%

605204's Introduction

60//5\204

A sequel to 60//5\203, now with automation!

in this repo there is:

  • an article list
  • a python scrypt with no none core dependencies
  • a shell script that goes through the list, grabbing the articles putting the output through the python script

Using lynx to get the articles is good most of the time this is demonstrated in the included script which is meant for pulling the 1000 articles that are important to have in every wikipedia & convert them into haikus. The wikipedia chosen was the Simple English one. Only one article fails right now (2016/09/05) which is Trimurti due to too little words, but if one does the process outlined in the python script it should actually find a haiku. This is due to the counting algorithm, which can probably be improved greatly (many examples can be found of it counting too little syllables)

Utilities I use in the example script:

  • Lynx
  • cat
  • sed
  • echo
  • python (imports sys, os, getopt)
  • ascii2uni && uni2ascii

605204's People

Contributors

ixt avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

605204's Issues

Some entries fail to get through sumy

Need to find a better way to summarize/parse text from articles, sumy sucks for not getting the titles to parse and sometimes sumy does too good a job at summarising so the script doesnt have enough words to chance by 5 - 7 - 5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.