Skip to main content

Typecraft Python

https://img.shields.io/pypi/v/typecraft_python.svg https://img.shields.io/travis/Typecraft/typecraft_python.svg 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.

Installation

pip install typecraft_python

Features

  • 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

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

Options:
  --help  Show this message and exit.

Commands:
  convert
  ntexts   This command lists the number of texts in a...
  raw
  xml

Examples

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

Credits

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

History

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

Metadata

Release files for typecraft_python 0.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for typecraft_python 0.11.0
File Size Uploaded
typecraft_python-0.11.0.tar.gz 56.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for typecraft_python 0.11.0
File Interpreter ABI Platform
typecraft_python-0.11.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 113.0 kB

Release files / typecraft_python-0.11.0.tar.gz

Download URL typecraft_python-0.11.0.tar.gz
Size 56.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6efad285bac551c4d81a2d16bea5d1cd173ac8df862e54cc1fb57f3e10cf4c12
BLAKE2b-256 checksum
How to use checksums
96958687b940cd5db5dea6091b6c35d579f232802099013afd4464075e76fc48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / typecraft_python-0.11.0-py2.py3-none-any.whl

Download URL typecraft_python-0.11.0-py2.py3-none-any.whl
Size 56.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ccf81b25a1bdc67a89197f7713180d6e240025b0430e2f0e556d604d469c68b7
BLAKE2b-256 checksum
How to use checksums
9036d09ccb42df9940426c4f94494a714734218fa6d360f27b20d7df8fef9756
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.11.0 This release

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page