Skip to content

Commit

Permalink
slimming down the README
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Nov 19, 2018
1 parent bb79154 commit d8780bc
Showing 1 changed file with 15 additions and 54 deletions.
69 changes: 15 additions & 54 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ CLAM: Computational Linguistics Application Mediator
*by Maarten van Gompel, Centre for Language and Speech Technology, Radboud University Nijmegen*

*Licensed under GPLv3*
**Website:** https://proycon.github.io/clam

**Website:** https://proycon.github.io/clam
**Source repository:** https://github.com/proycon/clam/
**Documentation:** https://clam.readthedocs.io
**Installation:** ``pip install clam``

CLAM allows you to quickly and transparently transform your Natural Language
Processing application into a RESTful webservice, with which both human
Expand All @@ -45,14 +47,13 @@ CLAM is entirely written in Python, runs on UNIX-derived systems, and is
available as open source under the GNU Public License (v3). It is set up in a
modular fashion, and offers an API, and as such is easily extendable. CLAM
communicates in a transparent XML format, and using XSL transformation offers a
full web 2.0 web-interface for human end users.
full web 2.0 web-interface for human end users.


Installation instruction can be found below. For full documentation see the
manual in ``docs/clam_manual.pdf`` , also accessible through the CLAM website
at http://proycon.github.io/clam . It is recommended to read this prior to
starting with CLAM.
Documentation
---------------

API Documentation is available on http://clam.readthedocs.io
Documentation is available on https://clam.readthedocs.io

Installation
----------------
Expand All @@ -61,7 +62,7 @@ It's discouraged to download the zip packages or tarballs
from github, install CLAM from the `Python
Package Index <http://pypi.python.org/pypi/CLAM>`_ or use git properly.

Installation On Linux
Installation On Linux
~~~~~~~~~~~~~~~~~~~~~~~~

Installation from the Python Package Index using the package manager *pip* it the recommended way to
Expand All @@ -72,7 +73,7 @@ want to install CLAM locally as a user, if you want to install globally,
prepend the following commands with ``sudo``:

CLAM can be installed from the Python Package Index using pip. Pip is usually
part of the ``python3-pip`` package or similar. It downloads CLAM and all dependencies
part of the ``python3-pip`` package (Debian/Ubuntu) or similar. It downloads CLAM and all dependencies
automatically:::

$ pip3 install clam
Expand All @@ -81,11 +82,11 @@ If you already downloaded CLAM manually (from github), you can do::

$ python3 setup.py install

If pip3 is not yet installed on your system, install it using:
If pip3 is not yet installed on your system, install it using:
on debian-based linux systems (including Ubuntu)::

$ apt-get install python3-pip
$ apt-get install python3-pip

on RPM-based linux systems::

$ yum install python3-pip
Expand All @@ -107,61 +108,21 @@ CLAM also has some optional dependencies. For MySQL support, install
``mysqlclient`` using pip. For `FoLiA <https://proycon.github.io/folia>`_
support, install ``FoLiA-Tools`` using pip.

Installation on Mac OS X
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Install a Python distribution such as `Anaconda <http://continuum.io/>`_ and follow the Linux instructions above.


Installation on Windows
~~~~~~~~~~~~~~~~~~~~~~~~~~

CLAM does not support Windows, i.e. you can't run CLAM webservices on Windows.
However, the CLAM Data API and client API will work, so clients connecting to
CLAM webservices can run on Windows. Follow the same instructions as for Mac
OS X.

Running a test webservice
~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you installed CLAM using the above method, then you can launch a clam test
webservice using the development server as follows::

$ clamservice -H localhost -p 8080 clam.config.textstats

Navigate your browser to http://localhost:8080 and verify everything works

Note: It is important to regularly keep CLAM up to date as fixes and
improvements are implemented on a regular basis. Update CLAM using::

$ pip install -U clam

or if you used easy_install::

$ easy_install -U clam


Installing a particular clam webservice for production use
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

When installating a particular CLAM webservice on a new server, it is first
necessary to edit the service configuration file of the webservice and make
sure all the paths in there are set correctly for the new server. Of interest
is in particular the ROOT path, which is where user data will be stored, this
directory must exist and be writable by the webserver.

For testing, the built-in development server can be used. Suppose the
webservice configuration is in /path/to/mywebservice/ and is called
mywebservice.py, then the development server can be started as follows::

$ clamservice -P /path/to/mywebservice mywebservice

For production, however, it is strongly recommended to embed CLAM in Apache or
nginx. This is the typically task of a system administrator, as certain skills are
necessary and assumed. All this is explained in detail in the CLAM
Manual, obtainable from https://proycon.github.io/clam/ .





0 comments on commit d8780bc

Please sign in to comment.