Skip to main content

Reproducible Experimentation for Computational Linguistics Use

Project description

Recluse

Author: L. Amber Wilcox-O'Hearn

Contact: amber@cs.toronto.edu

Released under the GNU AFFERO GENERAL PUBLIC LICENSE, see COPYING file for details.

==============
Introduction
==============

recluse (Reproducible Experimentation for Computational Linguistics USE) is a set of tools for running computational linguistics experiments reproducibly.

This version contains

* utils, which has four functions:
** open_with_unicode for reading and writing unicode with regular or compressed text
** split_file_into_chunks for splitting a file into smaller pieces. This is needed for some tools that load everything into RAM, or train on all the data when we would be satisfied with training on partial data.
** partition_by_list works like a combination of the string methods partition and split; it keeps the separators, but partitions into a list.
** precision_recall_f_measure calculates those things.

* article_selector (to replace article_randomiser below), reproducibly randomly selects a portion of a large corpus for the experiment, divides it into training, development, and test sets, and returns an article index to those sets.
* article_randomiser, which reproducibly randomly divides a corpus into training, development, and test sets.
* nltk_based_segmenter_tokeniser, which does sentence segmentation and word tokenisation.
It is optimised for Wikipedia type text.
* vocabulary_generator and the helper class vocabulary_cutter. This wraps srilm as it makes unigram counts, and then selects the most frequent.


============
Dependencies
============

recluse depends on the pypi package `regex`_, which (unlike re) has unicode category support.

sudo pip install regex

==========
Installing
==========

recluse is registered with pypi, so can be installed with pip:

sudo pip install recluse


.. _regex: https://pypi.python.org/pypi/regex/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

recluse-0.4.4.tar.gz (463.0 kB view details)

Uploaded Source

File details

Details for the file recluse-0.4.4.tar.gz.

File metadata

  • Download URL: recluse-0.4.4.tar.gz
  • Upload date:
  • Size: 463.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for recluse-0.4.4.tar.gz
Algorithm Hash digest
SHA256 e9d964e635a18072d1709a23b4f19372c2721dfdedb33fcf9a8d3410de6e2e9e
MD5 962aa5060ad3a8dd4ca99b12e190d1cc
BLAKE2b-256 c16c62a8cccb1ceb99bc52c969628b84d3b6e52eaa292f04cc125bd451ff336e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page