Skip to main content

Lightweight implementation of the Typecraft XML format in python.

Project description

Typecraft Python Documentation Status Updates

This repository contains an IGT model based on the Typecraft IGT format. It also contains a simple CLI for performing various NLP tasks, interfacing with both NLTK and other tools such as the TreeTagger.


pip install typecraft_python


  • Parsing of the Typecraft XML format.
  • Manipulation of the Typecraft IGT model format.
    • Integrating with NLTK
    • Integrating with TreeTagger
  • Provides a CLI that can be used to load, convert and manipulate raw text and Typecraft XML files.


Usage: tpy [OPTIONS] COMMAND [ARGS]...

  --help  Show this message and exit.

  ntexts   This command lists the number of texts in a...


Load a raw file, tokenize and tag it, and output xml (to stdout):

$ tpy raw your_file.txt

To save to a file

$ tpy raw your_file.txt -o output.xml
# or
$ tpy raw your_file.txt > output.xml

To tag using a specific tagger:

$ tpy raw your_file.txt --tagger=tree  # Tags using the tree tagger

To load a Typecraft xml file and tag it:

$ tpy xml your_file.xml --tag --tagger=nltk -o tagged_output.xml


This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.


0.1.1 (2016-08-15)

  • Fixed some small bugs.

0.1.0 (2016-08-14)

  • First release. Added main bulk of initial code:
    • Parser works in its most basic inception and parses TC-XML documents into its object-tree

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
typecraft_python-0.11.0-py2.py3-none-any.whl (56.6 kB) Copy SHA256 hash SHA256 Wheel py2.py3
typecraft_python-0.11.0.tar.gz (56.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page