Git Product home page Git Product logo

origins-education-reform's Introduction

origins-education-reform

Library for calculating NLP metrics across large corpora.

Building Corpora

British Corpus

Assuming that you have already downloaded the raw data from HathiTrust (paths for British corpus located at /ht_path_lists/british_paths.txt), run british_build.sh (located in this directory) as follows:

bash british_build.sh <PATH_TO_HT_FILES> <OUTPUT_DIRECTORY_PATH>

Danish Corpus

The Danish corpus is sourced from both HathiTrust and the Danish government. For the HathiTrust files, download the raw data exactly as before with the British corpus, but using the path list located at /ht_path_lists/danish_paths.txt. The non-HathiTrust files are publicly available (TODO - update where to download). To build the corpus, run danish_build.sh (located in this directory) as follows:

bash danish_build.sh <PATH_TO_XML_FILES> <PATH_TO_HT_FILES> <OUTPUT_DIRECTORY_PATH>

Downloading HathiTrust data

Rsync Instructions:

Install Pairtree for Perl:

$ curl -L http://cpanmin.us | perl - —sudo App::cpanminus 

which cpan 
which cpanm

sudo cpanm File::Pairtree

Run this rsync script on SCC1.bu.edu. Use ht_text_pd as the $TREE value.

Centos 7 Installation:

Run the following commands on a clean Centos 7 server on the MOC.

$ sudo yum -y update && sudo yum -y groupinstall development && sudo yum -y install vim openssl-devel bzip2-devel readline-devel sqlite-devel
$ curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
$ source ~/.bash_profile
$ pyenv install 3.5.2

origins-education-reform's People

Contributors

bengetch avatar frederickjansen avatar gxavier38 avatar lapets avatar ch3njust1n avatar asadeg02 avatar

Watchers

Peter Flockhart avatar James Cloos avatar Jeff Simeon avatar  avatar Rishi Shah avatar Collin Bolles avatar  avatar Shashank Karthikeyan avatar  avatar

origins-education-reform's Issues

Overwrite JSON

With the xmlparser code, we could overwrite the JSON files rather than erasing them before running the code every time.

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.