Giter Site home page Giter Site logo

h-generator's Introduction

Test and Lint codecov Ruby Style Guide

H-Generator

A script to generate H for a research class

Usage

ruby gen_h.rb -g alphabet.txt, -f freqs.txt

Options and Inputs

Alphabet File

Flag: -g, --alphabet

Expected format is a list of words, one per line, all unique, with sufficient range so as to be allow users to type all possible words (thereby requiring all english characters and the space character)

Example:

a
b
c
...
the
ation
st

Frequency File

Flag: -f, --frequencies

Expected format is a list of words, space separated from their frequency counts, one per line, in descending order.

Example:

THE  12345677
HELLO  134567
EXAMPLE 123342

Recommended file: http://norvig.com/google-books-common-words.txt

Output File

Flag: -o, --output

The file to write the result to

Words to Parse (Optional)

Flag: -n, --words-to-parse

The number of words to parse from the frequency file. Defaults to 10000

h-generator's People

Contributors

hbiede avatar

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.