Giter VIP home page Giter VIP logo

lukasz-debowski / zipfanatomy Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.85 MB

Collection of scripts, tables, and figures for the working version of paper "Corrections of Zipf's and Heaps' Laws Derived from Hapax Rate Models"

Home Page: https://arxiv.org/abs/2307.12896

License: GNU General Public License v3.0

Shell 10.42% Gnuplot 66.42% Perl 23.16%
calculus hapax-legomenon heaps-law urn-model zipfs-law

zipfanatomy's Introduction

ZipfAnatomy - supplementary materials

This is a collection of bash, Perl, and gnuplot scripts as well as tables and figures accompanying my paper "Corrections of Zipf's and Heaps' Laws Derived from Hapax Rate Models".

Supplementary plots

If you are primarily interested in analysing the supplementary plots for my paper, go to directories herdan/ and zipf/ and browse the PDF files.

Reproducing the results on another dataset

  1. Before running these scripts, you need to download plain texts and frequency lists (these were from the Project Gutenberg corpus and the National Corpus of Polish in my case) and to put them in appropriate directories. To work with other data, you are invited to modify scripts:

make_init_herdan.bash

make_init_zipf.bash

  1. The scripts assume that that the Perl scripts from my Github TypeToken repository are reachable from the bash variable $PATH.

  2. The main script is make.bash, it calls everything else and it generates directories herdan/ and zipf/ that contain tables and figures.

  3. There are two parallel pipelines of text processing. The first pipeline assumes that you have plain text files as the input. These are the "herdan" files. Another pipeline assumes that you have frequency lists as the input. These are the "zipf" files.

Good luck!

zipfanatomy'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.