Giter Club home page Giter Club logo

typetoken's Introduction

TypeToken - Perl scripts for processing word frequency lists

These scripts are designed to operate in pipes.

Piping scheme

[frequency list] => TT_ranks_from_no_ranks.pl => TT_ranks_short.pl => TT_fof.pl => TT_TT_growth_short_hapaxes_expected.pl [list of tokens] => TT_ranks.pl => TT_ranks_short.pl => TT_fof.pl => TT_TT_growth_short_hapaxes_expected.pl [list of tokens] => TT_growth.pl [list of tokens] => TT_growth_short.pl [list of tokens] => TT_growth_short_hapaxes.pl

[list of tokens] - a file of tokens separated by newlines [frequency list] - a sorted list of "frequency type" separated by newlines

cat [frequency list] | T_normalize.pl | sort -k 2 | T_uniq.pl | sort -nr > [frequency list]

Short script descriptions

TT_ranks_from_no_ranks.pl - adds ranks to a sorted frequency list

TT_ranks.pl - makes the rank list of types

TT_ranks_short.pl - makes the abridged rank list of types

TT_fof.pl - makes the list of frequencies of type frequencies

TT_growth.pl - computes the vocabulary curve

TT_growth_short.pl - computes a sparse vocabulary curve

TT_growth_short_hapaxes.pl - computes a sparse vocabulary and hapax curve

TT_growth_short_hapaxes_expected.pl - computes a sparse expected vocabulary and hapax curve

typetoken's People

Contributors

lukasz-debowski avatar

Watchers

 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.