Coder Social home page Coder Social logo

dobby233liu / garfield.csv Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 43.98 MB

Python script that converts comic transcripts from john.ccac.rwth-aachen.de (like Garfield.txt) into CSV files

License: MIT License

Python 99.91% HTML 0.09%
csv parser garfield data dilbert dilbert-comics drabble

garfield.csv's Introduction

garfield.csv

Python-based tools that converts comic transcripts from john.ccac.rwth-aachen.de (like Garfield.txt) into CSV files.

Archived

I have decided to stop maintaining this project for an indefinite amount of time, as it has seen no use for a long time.

Pre-converted files

.github/workflows/generate.yml

Pre-converted files are provided by the gh-pages branch. It is also online for file downloading. Source code for the workflow that drives this. Files are rebuilt at 00:05 UTC+2 every day.

(file list)

Modules

enc_convert

This script converts a text file with a encoding to a text file with another encoding.

Syntax:

python enc_convert.py <old_file> <new_file> [old_enc|detect] [new_enc|utf-8] [fallback_for_detect|ISO-8859-1]

encs have to be a string pointing to a encoding that Python supports. Using detect as old_enc requires chardet to be installed. fallback_for_detect will be a placeholder when the detecting process goes badly (errors out/has low confindenity).

Run this on a original script file downloaded from John (the server) to correctly run the script through main. (You may not need to use this; Workflow job has been changed to use iconv instead)

main

The CLI. Specify -h as a argument while running this script to get help. Outputs a CSV file ready for gpt-2-simple usage and general parsing/querying/listing/reading/etc.

convert

The module that is used internally by main.

sanitize

The script to sanitize the output CSV file. Not for you.

Source Code

Source code is located at GitHub: https://github.com/Dobby233Liu/garfield.csv

License

MIT

garfield.csv's People

Contributors

dobby233liu avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

garfield.csv's Issues

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.