Skip to main content

Wrapper for the TreeTagger text annotation tool from H.Schmid.

Project description

Author:

Laurent Pointal <laurent.pointal@limsi.fr> <laurent.pointal@laposte.net>

Organization:
CNRS - LIMSI
license:

GNU-GPL Version 3 or greater

What is it

This module wrap the Helmut Schmid tool into a Python class allowing to tag several texts one after the other, maintaining connexions with the tagger process to speed-up processing (remove external Perl scripts dependency for chunking).

Using objects, you can start multiple taggers simultaneously, eventually using different languages.

Support chunking for:

  • english

  • french

  • german

  • spanish

Support tagging for languages supported by TreeTagger, but you have to do chunking by your own, if necessary you have to specify parameter files via options.

This version has been reworked to run with Python2 and Python3 (thanks so six) and globally reworked, bugs fixed.

Documentation is available on Read the Docs (and module provides docstrings).

Subversion repository is on french academic Sourcesup site.

You can also see treetagger wrapper developer page.

Installation

Unless someone built a package for your OS distro, the simplest procedure is to use pip to install the module:

pip install treetaggerwrapper

If you have no admin access to install things on you computer, you may install a virtualenv and run pip inside this virtual env, or you can do a local user installation:

pip install –user treetaggerwrapper

You also need to install TreeTagger…

TreeTagger

Treetagger itself is is freely available for research, education and evaluation. See TreeTagger page.

There is an installation procedure based on a script, where you download needed files into the directory where you want to install TreeTagger, including the installation script, and then launch the script to unzip and install right files in right directories.

For Windows users, there is a downloadable Windows binary, but no install script. You have to download TreeTagger parameter files (since TreeTagger goes utf-8 they are same on Linux and Windows), unzip them and install them in the right place (lib/), with the right names (you can see these files names in treetaggerwrapper.py global dictionnary g_langsupport, in keys tagparfile and abbrevfile.

If you install TreeTagger in a common place, there is normally a working autodetection within treetaggerwrapper. But if you install it in a special place or with a special name, you will have to provide this installation directory to the module (see TAGDIR in the doc).

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

treetaggerwrapper-2.1.1.tar.gz (34.1 kB view details)

Uploaded Source

File details

Details for the file treetaggerwrapper-2.1.1.tar.gz.

File metadata

File hashes

Hashes for treetaggerwrapper-2.1.1.tar.gz
Algorithm Hash digest
SHA256 3ecf845d8d2a8de349302224538a508cf8f61a58b2c72a00020bbe8fff93642a
MD5 2e53902a9c2b61c1a268f678d27608ec
BLAKE2b-256 650888d5d98938f786f3416d5fcaaa95c832287b47342f8757d5f6e7118b1d74

See more details on using hashes here.

Supported by

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