Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Apr 11, 2017
1 parent ab56758 commit 357ccfc
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 30 deletions.
45 changes: 30 additions & 15 deletions README.rst
Expand Up @@ -3,43 +3,58 @@ PyDelta
-------


pydelta is a library and tool to perform stylometric analyses like authorship attribution, and to evaluate methods for that. It originated as a commandline tool which implements three algorithms in the form described by Argamon in a paper on John Burrows Delta.
pydelta is a library to perform stylometric analyses like authorship attribution, and to evaluate methods for that. It originated as a commandline tool which implements three algorithms in the form described by Argamon in a paper on John Burrows Delta.
(S. Argamon, "Interpreting Burrows’s Delta: Geometric and Probabilistic
Foundations," Literary and linguistic computing, vol. 23, iss. 2, pp. 131-147, 2008.)

Delta is a measure to describe the stylistic difference between texts. It is used
in computational stylistics, especially in author attribution.
This implementation is for research purposes only, If you want to use
a reliable implementation with a nice Gui and much more features you should
have a closer look at the great R tool 'stylo':
https://sites.google.com/site/computationalstylistics/
have a closer look at the great R tool Stylo_.

.. _Stylo: https://sites.google.com/site/computationalstylistics/

Installation and Requirements
=============================
Documentation
=============

PyDelta requires **Python 3.3 or newer**. It has quite a set of dependencies (NumPy, Pandas, SciPy, SciKit-Learn, …), but it comes with a setup script that installs it with its dependencies.
Documentation_ for the _next_ branch is updated on each commit.

Developers can clone the repo and run pip to install::
.. _Documentation: http://dev.digital-humanities.de/ci/job/pydelta-next/Documentation/index.html

git clone -b next https://github.com/cophi-wue/pydelta
cd pydelta
pip install -r requirements.txt

This will also install a version of scikit-learn that features
k-Medoids-Clustering which is not in the official version yet.

Different branches, different versions
======================================

There are currently three different long-running branches:

1. The **master** branch contains a rather old version of pydelta capable of running single experiments with a bunch of delta measures. Will be replaced sometime soon.
2. The **develop** branch is based on the script in the master version, but it contains more delta methods as well as some very unpolished command line scripts that we used, e.g., in order to produce the results presented at DH 2015 in Sidney.
3. The **next** branch is more or less a re-implementation that is not yet feature complete. It does not contain a command-line executable, and some of the methods that did not perform well have been left out.


Installation and Requirements
=============================

PyDelta requires **Python 3.3 or newer**. It has quite a set of dependencies (NumPy, Pandas, SciPy, SciKit-Learn, …), but it comes with a setup script that installs it with its dependencies.

If you only wish to use it, not to hack on it, pip can clone and install it for you::

pip install git+https://github.com/cophi-wue/pydelta@next

(Note that the Python 3 version of pip is sometimes called ``pip3``).

Developers can clone the repo and run pip to install::

Usage
=====
git clone -b next https://github.com/cophi-wue/pydelta
cd pydelta
pip install -r requirements.txt

This will also install a version of scikit-learn that features
k-Medoids-Clustering which is not in the official version yet. You may need to
install numpy, scipy, and Cython separately first.

There is no command line script yet. Read on in the Concepts guide to get started.

----

Expand Down
4 changes: 2 additions & 2 deletions docs/concept.rst
Expand Up @@ -73,7 +73,7 @@ The latter is created from a *descriptor* which consists of the distance functio
CompositeDeltaFunction("manhattan-z_score", "burrows", "Burrows' Delta")


Running Multiple Experiments
============================
3. Clustering
-------------

TODO
15 changes: 2 additions & 13 deletions docs/delta.rst
@@ -1,11 +1,8 @@
delta package
=============
API documentation
=================

The end-user facing stuff from the submodules is also exported by the package, so you can call, e.g., ``delta.Corpus``.

Submodules
----------

delta.corpus module
-------------------

Expand Down Expand Up @@ -56,14 +53,6 @@ delta.graphics module
:undoc-members:
:show-inheritance:

delta.experiments module
------------------------

.. automodule:: delta.experiments
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

Expand Down

0 comments on commit 357ccfc

Please sign in to comment.